home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / DRIVER.CAB / ep2lc80.gpd < prev    next >
Encoding:
Text File  |  1999-07-30  |  124.6 KB  |  3,854 lines

  1. *%
  2. *% Copyright (c) 1997 - 1999 Microsoft Corporation
  3. *% All Rights Reserved.
  4. *%
  5. *GPDSpecVersion: "1.0"
  6. *GPDFileVersion: "0.08"
  7. *GPDFileName: "EP2LC80.GPD"
  8. *Include: "STDNAMES.GPD"
  9. *% Common Macros
  10. *Macros: ResourceIDs
  11. {
  12.     *% Font Resource (UFM)
  13.     RC_FONT_ROMAN    :   1
  14.     RC_FONT_SANSRF   :   2
  15.     RC_FONT_COURIER  :   3
  16.     RC_FONT_COURIERI :   4
  17.     RC_FONT_COURIERB :   5
  18.     RC_FONT_COURIERZ :   6
  19.     RC_FONT_SYMBOL   :   7
  20.     RC_FONT_SYMBOLIC :   8
  21.  
  22.     RC_FONT_DUTCH    :  33
  23.     RC_FONT_DUTCHI   :  34
  24.     RC_FONT_DUTCHB   :  35
  25.     RC_FONT_DUTCHZ   :  36
  26.     RC_FONT_SWISS    :  37
  27.     RC_FONT_SWISSI   :  38
  28.     RC_FONT_SWISSB   :  39
  29.     RC_FONT_SWISSZ   :  40
  30.     RC_FONT_MOREWB   :  43
  31.  
  32.     *% TTFS:Latin; valid only when optional fonts(Swiss721, etc.) provided
  33.     RC_TTF_ARIAL       : 131              *% L"Arial"
  34.     RC_DF_SWISS721     : 132              *% L"Swiss721"
  35.     RC_TTF_COURIERNEW  : 133              *% L"Courier New"
  36.     RC_DF_COURIER      : 134              *% L"Courier"
  37.     RC_TTF_SYMBOL      : 135              *% L"Symbol"
  38.     RC_DF_SYMBOLIC     : 136              *% L"Symbolic"
  39.     RC_TTF_TIMESNR     : 137              *% L"Times New Roman"
  40.     RC_DF_DUTCH801     : 138              *% L"Dutch801"
  41.     RC_TTF_WINGDINGS   : 139              *% L"Wingdings"
  42.     RC_DF_MOREWINGBATS : 140              *% L"MoreWingBats"
  43.  
  44.     *% PaperSize
  45.     RC_STR_HLT       : 257                *% L"HalfLetter 5.5 x 8.5 in"
  46.     RC_STR_GLG       : 258                *% L"Government Legal 8.5 x 13.0 in"
  47.     RC_STR_GLT       : 259                *% L"Government Letter 8.0 x 10.5 in"
  48.     RC_STR_F4        : 260                *% L"F4 210 x 330 mm"
  49.     RC_STR_C10       : 261                *% L"Commercial 10 4.125 x 9.5 in"
  50.     RC_STR_A3P       : 262                *% L"A3+ 329 x 483 mm"
  51. @*
  52.     RC_STR_A3W       : 266                *% L"A3 Wide 328 x 453 mm"
  53.     RC_STR_IB5       : 268                *% L"International-B5 176 x 250 mm"
  54.  
  55.     *% FontCartridgeName:US
  56.  
  57.     *% PaperSource:US
  58.     RC_STR_CST       : 276                *% L"Paper Cassette"
  59.     RC_STR_CST1      : 277                *% L"Lower Paper Cassette 1"
  60.     RC_STR_CST2      : 278                *% L"Lower Paper Cassette 2"
  61.     RC_STR_CST3      : 279                *% L"Lower Paper Cassette 3"
  62.     RC_STR_CST4      : 280                *% L"Lower Paper Cassette 4"
  63.     RC_STR_TRAY      : 281                *% L"Paper Tray"
  64.     RC_STR_MPTRAY    : 282                *% L"MP Tray"
  65.     RC_STR_LCST      : 283                *% L"Lower Paper Cassette"
  66.     RC_STR_FTRAY     : 284                *% L"Front Tray"
  67.     RC_STR_AUTOSEL   : 285                *% L"Auto Select"
  68.  
  69.     *% Custom Features
  70.     RC_STR_FACEDOWN  : 321                *% L"Face Down Tray"
  71.     RC_STR_FACEUP    : 322                *% L"Face Up Tray"
  72.     RC_STR_THICK     : 323                *% L"Thick"
  73.     RC_STR_THICK_N   : 324                *% L"Thick Narrow"
  74.     RC_STR_PRNTRMODE : 325                *% L"Printer Mode"
  75.     RC_STR_QUALITY   : 326                *% L"Quality"
  76.     RC_STR_SPEED     : 327                *% L"Speed"
  77.     RC_STR_CLRADJUST : 328                *% L"Color Adjustment"
  78.     RC_STR_NONE      : 329                *% L"None"
  79.     RC_STR_NATURAL   : 330                *% L"Natural/Photo"
  80.     RC_STR_VIVID     : 331                *% L"Vivid/Graph"
  81.     RC_STR_BRGHTNSS  : 358                *% L"Device Gamma Adjustment (Brightness)"
  82.     RC_STR_DRVDEF    : 359                *% L"Driver Default"
  83.     RC_STR_DARK2     : 360                *% L"Dark 2 (0.6)"
  84.     RC_STR_DARK1     : 361                *% L"Dark 1 (0.7)"
  85.     RC_STR_NORMAL    : 362                *% L"Normal (0.8)"
  86.     RC_STR_LGHT1     : 363                *% L"Light 1 (0.925)"
  87.     RC_STR_LGHT2     : 364                *% L"Light 2 (1.0)"
  88.     RC_STR_LGHT3     : 365                *% L"Light 3 (1.2)"
  89.     RC_STR_LGHT4     : 366                *% L"Light 4 (1.4)"
  90.     RC_STR_HUE       : 367                *% L"Device Gamma Adjustment (Hue)"
  91.     RC_STR_YLW       : 368                *% L"Yellow"
  92.     RC_STR_YLWGRN    : 369                *% L"Yellowish Green"
  93.     RC_STR_GRN       : 370                *% L"Green"
  94.     RC_STR_BLUGRN    : 371                *% L"Bluish Green"
  95.     RC_STR_GRNBLU    : 372                *% L"Greenish Blue"
  96.     RC_STR_BLU       : 373                *% L"Blue"
  97.     RC_STR_BLUPPL    : 374                *% L"Bluish Purple"
  98.     RC_STR_PPL       : 375                *% L"Purple"
  99.     RC_STR_REDPPL    : 376                *% L"Reddish Purple"
  100.     RC_STR_RED       : 377                *% L"Red"
  101.     RC_STR_ORG       : 378                *% L"Orange"
  102.     RC_STR_YLWORG    : 379                *% L"Yellowish Orange"
  103.     RC_STR_CHROMA    : 380                *% L"Device Gamma Adjustment (Chroma)"
  104.     RC_STR_FLAT      : 381                *% L"Flat"
  105.     RC_STR_LOW       : 382                *% L"Low"
  106.     RC_STR_MED       : 383                *% L"Medium"
  107.     RC_STR_HIGH      : 384                *% L"High"
  108.     RC_STR_RECTFILL  : 385                *% L"Vector Graphics"
  109.     RC_STR_ENABLED   : 386                *% L"Enabled"
  110.     RC_STR_DISABLED  : 387                *% L"Disabled"
  111.  
  112.     RC_STR_OPTION_ON : 390                *% L"Installed"
  113.     RC_STR_OPTION_OFF: 391                *% L"Not Installed"
  114.  
  115. }
  116.  
  117. *Macros: OEMCallbackIDs
  118. {
  119.     SET_LCID_J              :  10            *% 10 + 0x00000000(=LCID_JPN)
  120.     SET_LCID_U              :  16777226      *% 10 + 0x01000000(=LCID_USA)
  121.  
  122.     XMOVE_ABS               :  11            *% (DestX)
  123.     XMOVE_REL_RT            :  12            *% (DestXRel)
  124.     XMOVE_REL_LF            :  13            *% (DestXRel)
  125.     YMOVE_ABS               :  14            *% (DestY)
  126.     YMOVE_REL_DN            :  15            *% (DestYRel)
  127.     YMOVE_REL_UP            :  16            *% (DestYRel)
  128.     TEXT_PRN_DIRECTION      :  20            *% (PrintDirInCCDegrees)
  129.     TEXT_SINGLE_BYTE        :  21            *% (FontBold,FontItalic)
  130.     TEXT_DOUBLE_BYTE        :  22            *% (FontBold,FontItalic)
  131.     TEXT_BOLD               :  23            *% (FontBold)
  132.     TEXT_ITALIC             :  24            *% (FontItalic)
  133.     TEXT_HORIZONTAL         :  25            *% ()
  134.     TEXT_VERTICAL           :  26            *% ()
  135.     TEXT_NO_VPADJUST        :  27            *% ()
  136.     DOWNLOAD_SELECT_FONT_ID :  30            *% (CurrentFontID)
  137.     DOWNLOAD_DELETE_FONT    :  31            *% (CurrentFontID)
  138.     DOWNLOAD_DELETE_ALLFONT :  32            *% ()
  139.     DOWNLOAD_SET_FONT_ID    :  33            *% (CurrentFontID)
  140.     DOWNLOAD_SET_CHAR_CODE  :  34            *% (NextGlyph)
  141.     SEND_BLOCK_DATA         :  40            *% (NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
  142.     SET_SRC_BMP_WIDTH       :  41            *% (RasterDataWidthInBytes)
  143.     SET_SRC_BMP_HEIGHT      :  42            *% (RasterDataHeightInPixels)
  144.     DEFINE_PALETTE_ENTRY    :  43            *% (PaletteIndexToProgram,RedValue,GreenValue,BlueValue)
  145.     SELECT_PALETTE_ENTRY    :  44            *% (CurrentPaletteIndex)
  146.     SET_RECT_WIDTH          :  45            *% (RectXSize)
  147.     SET_RECT_HEIGHT         :  46            *% (RectYSize)
  148.     COMPRESS_OFF            :  50            *% ()
  149.     COMPRESS_ON             :  51            *% ()
  150. }
  151. *Macros: TTFDownloadCtrls
  152. {
  153.     DOWNLOAD_MIN_FONT_ID         :  512
  154.     DOWNLOAD_MIN_FONT_ID_0       :    0
  155.     DOWNLOAD_MIN_FONT_ID_NO_DBCS : 1536      *% 512 + 1024
  156.     DOWNLOAD_MAX_FONT_ID         :  535
  157.     DOWNLOAD_MAX_FONT_ID_10      :  521      *% 512 + 10 - 1
  158.     DOWNLOAD_MAX_FONT_ID_5       :  516      *% 512 + 5 - 1
  159.     DOWNLOAD_MAX_FONT_ID_0       :    0
  160.     DOWNLOAD_MAX_FONT_ID_NO_DBCS : 1559      *% 535 + 1024
  161.     DOWNLOAD_MAX_FONTS           :   24
  162.     DOWNLOAD_MAX_FONTS_10        :   10
  163.     DOWNLOAD_MAX_FONTS_5         :    5
  164.     DOWNLOAD_MAX_FONTS_0         :    0
  165.     DOWNLOAD_MIN_GLYPH_ID        :   32
  166.     DOWNLOAD_MAX_GLYPH_ID        :  543
  167. }
  168. *Macros: TTFSubstCtrls
  169. {
  170.     TTFS_ENABLED  : TRUE
  171. }
  172.  
  173. *% BlockMacros for PaperSize feature
  174. *BlockMacro: BM_PS_A3
  175. {
  176.     *rcNameID: =A3_DISPLAY
  177.     *switch: Orientation
  178.     {
  179.         *case: PORTRAIT
  180.         {
  181.             *PrintableArea: PAIR(13552, 19360)
  182.             *PrintableOrigin: PAIR(240, 240)
  183.             *CursorOrigin: PAIR(240, 240)
  184.             *Command: CmdSelect
  185.             {
  186.                 *Order: DOC_SETUP.40
  187.                 *Cmd: "<1D>13psE"
  188.             }
  189.         }
  190.         *case: LANDSCAPE_CC90
  191.         {
  192.             *PrintableArea: PAIR(13552, 19360)
  193.             *PrintableOrigin: PAIR(240, 240)
  194.             *CursorOrigin: PAIR(240, 19600)
  195.             *Command: CmdSelect
  196.             {
  197.                 *Order: DOC_SETUP.40
  198.                 *Cmd: "<1D>13psE<1D>1poE"
  199.             }
  200.         }
  201.     }
  202. }
  203. *BlockMacro: BM_PS_A4
  204. {
  205.     *rcNameID: =A4_DISPLAY
  206.     *switch: Orientation
  207.     {
  208.         *case: PORTRAIT
  209.         {
  210.             *PrintableArea: PAIR(9440, 13552)
  211.             *PrintableOrigin: PAIR(240, 240)
  212.             *CursorOrigin: PAIR(240, 240)
  213.             *Command: CmdSelect
  214.             {
  215.                 *Order: DOC_SETUP.40
  216.                 *Cmd: "<1D>14psE"
  217.             }
  218.         }
  219.         *case: LANDSCAPE_CC90
  220.         {
  221.             *PrintableArea: PAIR(9440, 13552)
  222.             *PrintableOrigin: PAIR(240, 240)
  223.             *CursorOrigin: PAIR(240, 13792)
  224.             *Command: CmdSelect
  225.             {
  226.                 *Order: DOC_SETUP.40
  227.                 *Cmd: "<1D>14psE<1D>1poE"
  228.             }
  229.         }
  230.     }
  231. }
  232. *BlockMacro: BM_PS_A5
  233. {
  234.     *rcNameID: =A5_DISPLAY
  235.     *switch: Orientation
  236.     {
  237.         *case: PORTRAIT
  238.         {
  239.             *PrintableArea: PAIR(6512, 9440)
  240.             *PrintableOrigin: PAIR(240, 240)
  241.             *CursorOrigin: PAIR(240, 240)
  242.             *Command: CmdSelect
  243.             {
  244.                 *Order: DOC_SETUP.40
  245.                 *Cmd: "<1D>15psE"
  246.             }
  247.         }
  248.         *case: LANDSCAPE_CC90
  249.         {
  250.             *PrintableArea: PAIR(6512, 9440)
  251.             *PrintableOrigin: PAIR(240, 240)
  252.             *CursorOrigin: PAIR(240, 9680)
  253.             *Command: CmdSelect
  254.             {
  255.                 *Order: DOC_SETUP.40
  256.                 *Cmd: "<1D>15psE<1D>1poE"
  257.             }
  258.         }
  259.     }
  260. }
  261. *BlockMacro: BM_PS_B5
  262. {
  263.     *rcNameID: =B5_DISPLAY
  264.     *switch: Orientation
  265.     {
  266.         *case: PORTRAIT
  267.         {
  268.             *PrintableArea: PAIR(8120, 11664)
  269.             *PrintableOrigin: PAIR(240, 240)
  270.             *CursorOrigin: PAIR(240, 240)
  271.             *Command: CmdSelect
  272.             {
  273.                 *Order: DOC_SETUP.40
  274.                 *Cmd: "<1D>25psE"
  275.             }
  276.         }
  277.         *case: LANDSCAPE_CC90
  278.         {
  279.             *PrintableArea: PAIR(8120, 11664)
  280.             *PrintableOrigin: PAIR(240, 240)
  281.             *CursorOrigin: PAIR(240, 11904)
  282.             *Command: CmdSelect
  283.             {
  284.                 *Order: DOC_SETUP.40
  285.                 *Cmd: "<1D>25psE<1D>1poE"
  286.             }
  287.         }
  288.     }
  289. }
  290. *BlockMacro: BM_PS_LT
  291. {
  292.     *rcNameID: =LETTER_DISPLAY
  293.     *switch: Orientation
  294.     {
  295.         *case: PORTRAIT
  296.         {
  297.             *PrintableArea: PAIR(9720, 12720)
  298.             *PrintableOrigin: PAIR(240, 240)
  299.             *CursorOrigin: PAIR(240, 240)
  300.             *Command: CmdSelect
  301.             {
  302.                 *Order: DOC_SETUP.40
  303.                 *Cmd: "<1D>30psE"
  304.             }
  305.         }
  306.         *case: LANDSCAPE_CC90
  307.         {
  308.             *PrintableArea: PAIR(9720, 12720)
  309.             *PrintableOrigin: PAIR(240, 240)
  310.             *CursorOrigin: PAIR(240, 12960)
  311.             *Command: CmdSelect
  312.             {
  313.                 *Order: DOC_SETUP.40
  314.                 *Cmd: "<1D>30psE<1D>1poE"
  315.             }
  316.         }
  317.     }
  318. }
  319. *BlockMacro: BM_PS_HLT
  320. {
  321.     *rcNameID: =RC_STR_HLT
  322.     *PageDimensions: PAIR(6600, 10200)
  323.     *switch: Orientation
  324.     {
  325.         *case: PORTRAIT
  326.         {
  327.             *PrintableArea: PAIR(6120, 9720)
  328.             *PrintableOrigin: PAIR(240, 240)
  329.             *CursorOrigin: PAIR(240, 240)
  330.             *Command: CmdSelect
  331.             {
  332.                 *Order: DOC_SETUP.40
  333.                 *Cmd: "<1D>31psE"
  334.             }
  335.         }
  336.         *case: LANDSCAPE_CC90
  337.         {
  338.             *PrintableArea: PAIR(6120, 9720)
  339.             *PrintableOrigin: PAIR(240, 240)
  340.             *CursorOrigin: PAIR(240, 9960)
  341.             *Command: CmdSelect
  342.             {
  343.                 *Order: DOC_SETUP.40
  344.                 *Cmd: "<1D>31psE<1D>1poE"
  345.             }
  346.         }
  347.     }
  348. }
  349. *BlockMacro: BM_PS_LGL
  350. {
  351.     *rcNameID: =LEGAL_DISPLAY
  352.     *switch: Orientation
  353.     {
  354.         *case: PORTRAIT
  355.         {
  356.             *PrintableArea: PAIR(9720, 16320)
  357.             *PrintableOrigin: PAIR(240, 240)
  358.             *CursorOrigin: PAIR(240, 240)
  359.             *Command: CmdSelect
  360.             {
  361.                 *Order: DOC_SETUP.40
  362.                 *Cmd: "<1D>32psE"
  363.             }
  364.         }
  365.         *case: LANDSCAPE_CC90
  366.         {
  367.             *PrintableArea: PAIR(9720, 16320)
  368.             *PrintableOrigin: PAIR(240, 240)
  369.             *CursorOrigin: PAIR(240, 16560)
  370.             *Command: CmdSelect
  371.             {
  372.                 *Order: DOC_SETUP.40
  373.                 *Cmd: "<1D>32psE<1D>1poE"
  374.             }
  375.         }
  376.     }
  377. }
  378. *BlockMacro: BM_PS_EXE
  379. {
  380.     *rcNameID: =EXECUTIVE_DISPLAY
  381.     *switch: Orientation
  382.     {
  383.         *case: PORTRAIT
  384.         {
  385.             *PrintableArea: PAIR(8220, 12120)
  386.             *PrintableOrigin: PAIR(240, 240)
  387.             *CursorOrigin: PAIR(240, 240)
  388.             *Command: CmdSelect
  389.             {
  390.                 *Order: DOC_SETUP.40
  391.                 *Cmd: "<1D>33psE"
  392.             }
  393.         }
  394.         *case: LANDSCAPE_CC90
  395.         {
  396.             *PrintableArea: PAIR(8220, 12120)
  397.             *PrintableOrigin: PAIR(240, 240)
  398.             *CursorOrigin: PAIR(240, 12360)
  399.             *Command: CmdSelect
  400.             {
  401.                 *Order: DOC_SETUP.40
  402.                 *Cmd: "<1D>33psE<1D>1poE"
  403.             }
  404.         }
  405.     }
  406. }
  407. *BlockMacro: BM_PS_GLG
  408. {
  409.     *rcNameID: =RC_STR_GLG
  410.     *PageDimensions: PAIR(10200, 15600)
  411.     *switch: Orientation
  412.     {
  413.         *case: PORTRAIT
  414.         {
  415.             *PrintableArea: PAIR(9720, 15120)
  416.             *PrintableOrigin: PAIR(240, 240)
  417.             *CursorOrigin: PAIR(240, 240)
  418.             *Command: CmdSelect
  419.             {
  420.                 *Order: DOC_SETUP.40
  421.                 *Cmd: "<1D>34psE"
  422.             }
  423.         }
  424.         *case: LANDSCAPE_CC90
  425.         {
  426.             *PrintableArea: PAIR(9720, 15120)
  427.             *PrintableOrigin: PAIR(240, 240)
  428.             *CursorOrigin: PAIR(240, 15360)
  429.             *Command: CmdSelect
  430.             {
  431.                 *Order: DOC_SETUP.40
  432.                 *Cmd: "<1D>34psE<1D>1poE"
  433.             }
  434.         }
  435.     }
  436. }
  437. *BlockMacro: BM_PS_GLT
  438. {
  439.     *rcNameID: =RC_STR_GLT
  440.     *PageDimensions: PAIR(9600, 12600)
  441.     *switch: Orientation
  442.     {
  443.         *case: PORTRAIT
  444.         {
  445.             *PrintableArea: PAIR(9120, 12120)
  446.             *PrintableOrigin: PAIR(240, 240)
  447.             *CursorOrigin: PAIR(240, 240)
  448.             *Command: CmdSelect
  449.             {
  450.                 *Order: DOC_SETUP.40
  451.                 *Cmd: "<1D>35psE"
  452.             }
  453.         }
  454.         *case: LANDSCAPE_CC90
  455.         {
  456.             *PrintableArea: PAIR(9120, 12120)
  457.             *PrintableOrigin: PAIR(240, 240)
  458.             *CursorOrigin: PAIR(240, 12360)
  459.             *Command: CmdSelect
  460.             {
  461.                 *Order: DOC_SETUP.40
  462.                 *Cmd: "<1D>35psE<1D>1poE"
  463.             }
  464.         }
  465.     }
  466. }
  467. *BlockMacro: BM_PS_F4
  468. {
  469.     *rcNameID: =RC_STR_F4
  470.     *PageDimensions: PAIR(9920, 15592)
  471.     *switch: Orientation
  472.     {
  473.         *case: PORTRAIT
  474.         {
  475.             *PrintableArea: PAIR(9440, 15112)
  476.             *PrintableOrigin: PAIR(240, 240)
  477.             *CursorOrigin: PAIR(240, 240)
  478.             *Command: CmdSelect
  479.             {
  480.                 *Order: DOC_SETUP.40
  481.                 *Cmd: "<1D>37psE"
  482.             }
  483.         }
  484.         *case: LANDSCAPE_CC90
  485.         {
  486.             *PrintableArea: PAIR(9440, 15112)
  487.             *PrintableOrigin: PAIR(240, 240)
  488.             *CursorOrigin: PAIR(240, 15352)
  489.             *Command: CmdSelect
  490.             {
  491.                 *Order: DOC_SETUP.40
  492.                 *Cmd: "<1D>37psE<1D>1poE"
  493.             }
  494.         }
  495.     }
  496. }
  497. *BlockMacro: BM_PS_MON
  498. {
  499.     *rcNameID: =ENV_MONARCH_DISPLAY
  500.     *switch: Orientation
  501.     {
  502.         *case: PORTRAIT
  503.         {
  504.             *PrintableArea: PAIR(4168, 8520)
  505.             *PrintableOrigin: PAIR(240, 240)
  506.             *CursorOrigin: PAIR(240, 240)
  507.             *Command: CmdSelect
  508.             {
  509.                 *Order: DOC_SETUP.40
  510.                 *Cmd: "<1D>80psE"
  511.             }
  512.         }
  513.         *case: LANDSCAPE_CC90
  514.         {
  515.             *PrintableArea: PAIR(4168, 8520)
  516.             *PrintableOrigin: PAIR(240, 240)
  517.             *CursorOrigin: PAIR(240, 8760)
  518.             *Command: CmdSelect
  519.             {
  520.                 *Order: DOC_SETUP.40
  521.                 *Cmd: "<1D>80psE<1D>1poE"
  522.             }
  523.         }
  524.     }
  525. }
  526. *BlockMacro: BM_PSB_E10
  527. {
  528.     *switch: Orientation
  529.     {
  530.         *case: PORTRAIT
  531.         {
  532.             *PrintableArea: PAIR(4468, 10920)
  533.             *PrintableOrigin: PAIR(240, 240)
  534.             *CursorOrigin: PAIR(240, 240)
  535.             *Command: CmdSelect
  536.             {
  537.                 *Order: DOC_SETUP.40
  538.                 *Cmd: "<1D>81psE"
  539.             }
  540.         }
  541.         *case: LANDSCAPE_CC90
  542.         {
  543.             *PrintableArea: PAIR(4468, 10920)
  544.             *PrintableOrigin: PAIR(240, 240)
  545.             *CursorOrigin: PAIR(240, 11160)
  546.             *Command: CmdSelect
  547.             {
  548.                 *Order: DOC_SETUP.40
  549.                 *Cmd: "<1D>81psE<1D>1poE"
  550.             }
  551.         }
  552.     }
  553. }
  554. *BlockMacro: BM_PS_C10
  555. {
  556.     *rcNameID: =RC_STR_C10
  557.     *PageDimensions: PAIR(4948, 11400)
  558.     *InsertBlock: =BM_PSB_E10
  559. }
  560. *BlockMacro: BM_PS_E10
  561. {
  562.     *rcNameID: =ENV_10_DISPLAY
  563.     *InsertBlock: =BM_PSB_E10
  564. }
  565. *BlockMacro: BM_PS_DL
  566. {
  567.     *rcNameID: =ENV_DL_DISPLAY
  568.     *switch: Orientation
  569.     {
  570.         *case: PORTRAIT
  571.         {
  572.             *PrintableArea: PAIR(4716, 9912)
  573.             *PrintableOrigin: PAIR(240, 240)
  574.             *CursorOrigin: PAIR(240, 240)
  575.             *Command: CmdSelect
  576.             {
  577.                 *Order: DOC_SETUP.40
  578.                 *Cmd: "<1D>90psE"
  579.             }
  580.         }
  581.         *case: LANDSCAPE_CC90
  582.         {
  583.             *PrintableArea: PAIR(4716, 9912)
  584.             *PrintableOrigin: PAIR(240, 240)
  585.             *CursorOrigin: PAIR(240, 10152)
  586.             *Command: CmdSelect
  587.             {
  588.                 *Order: DOC_SETUP.40
  589.                 *Cmd: "<1D>90psE<1D>1poE"
  590.             }
  591.         }
  592.     }
  593. }
  594. *BlockMacro: BM_PS_C5
  595. {
  596.     *rcNameID: =ENV_C5_DISPLAY
  597.     *switch: Orientation
  598.     {
  599.         *case: PORTRAIT
  600.         {
  601.             *PrintableArea: PAIR(7172, 10336)
  602.             *PrintableOrigin: PAIR(240, 240)
  603.             *CursorOrigin: PAIR(240, 240)
  604.             *Command: CmdSelect
  605.             {
  606.                 *Order: DOC_SETUP.40
  607.                 *Cmd: "<1D>91psE"
  608.             }
  609.         }
  610.         *case: LANDSCAPE_CC90
  611.         {
  612.             *PrintableArea: PAIR(7172, 10336)
  613.             *PrintableOrigin: PAIR(240, 240)
  614.             *CursorOrigin: PAIR(240, 10576)
  615.             *Command: CmdSelect
  616.             {
  617.                 *Order: DOC_SETUP.40
  618.                 *Cmd: "<1D>91psE<1D>1poE"
  619.             }
  620.         }
  621.     }
  622. }
  623. *BlockMacro: BM_PS_C6
  624. {
  625.     *rcNameID: =ENV_C6_DISPLAY
  626.     *switch: Orientation
  627.     {
  628.         *case: PORTRAIT
  629.         {
  630.             *PrintableArea: PAIR(4928, 7172)
  631.             *PrintableOrigin: PAIR(240, 240)
  632.             *CursorOrigin: PAIR(240, 240)
  633.             *Command: CmdSelect
  634.             {
  635.                 *Order: DOC_SETUP.40
  636.                 *Cmd: "<1D>92psE"
  637.             }
  638.         }
  639.         *case: LANDSCAPE_CC90
  640.         {
  641.             *PrintableArea: PAIR(4928, 7172)
  642.             *PrintableOrigin: PAIR(240, 240)
  643.             *CursorOrigin: PAIR(240, 7412)
  644.             *Command: CmdSelect
  645.             {
  646.                 *Order: DOC_SETUP.40
  647.                 *Cmd: "<1D>92psE<1D>1poE"
  648.             }
  649.         }
  650.     }
  651. }
  652. *BlockMacro: BM_PS_TBLD
  653. {
  654.     *rcNameID: =TABLOID_DISPLAY
  655.     *switch: Orientation
  656.     {
  657.         *case: PORTRAIT
  658.         {
  659.             *PrintableArea: PAIR(12720, 19920)
  660.             *PrintableOrigin: PAIR(240, 240)
  661.             *CursorOrigin: PAIR(240, 240)
  662.             *Command: CmdSelect
  663.             {
  664.                 *Order: DOC_SETUP.40
  665.                 *Cmd: "<1D>36psE"
  666.             }
  667.         }
  668.         *case: LANDSCAPE_CC90
  669.         {
  670.             *PrintableArea: PAIR(12720, 19920)
  671.             *PrintableOrigin: PAIR(240, 240)
  672.             *CursorOrigin: PAIR(240, 20160)
  673.             *Command: CmdSelect
  674.             {
  675.                 *Order: DOC_SETUP.40
  676.                 *Cmd: "<1D>36psE<1D>1poE"
  677.             }
  678.         }
  679.     }
  680. }
  681. *BlockMacro: BM_PS_B4
  682. {
  683.     *rcNameID: =B4_DISPLAY
  684.     *switch: Orientation
  685.     {
  686.         *case: PORTRAIT
  687.         {
  688.             *PrintableArea: PAIR(11664, 16720)
  689.             *PrintableOrigin: PAIR(240, 240)
  690.             *CursorOrigin: PAIR(240, 240)
  691.             *Command: CmdSelect
  692.             {
  693.                 *Order: DOC_SETUP.40
  694.                 *Cmd: "<1D>24psE"
  695.             }
  696.         }
  697.         *case: LANDSCAPE_CC90
  698.         {
  699.             *PrintableArea: PAIR(11664, 16720)
  700.             *PrintableOrigin: PAIR(240, 240)
  701.             *CursorOrigin: PAIR(240, 16960)
  702.             *Command: CmdSelect
  703.             {
  704.                 *Order: DOC_SETUP.40
  705.                 *Cmd: "<1D>24psE<1D>1poE"
  706.             }
  707.         }
  708.     }
  709. }
  710. *BlockMacro: BM_PSB_CTM
  711. {
  712.     *MinLeftMargin: 240
  713.     *CenterPrintable?: FALSE
  714.     *switch: Orientation
  715.     {
  716.         *case: PORTRAIT
  717.         {
  718.             *Command: CmdSelect
  719.             {
  720.                 *Order: DOC_SETUP.40
  721.                 *Cmd: "<1D>-1;" %d{(PhysPaperWidth / 2) }";" %d{(PhysPaperLength / 2) }"psE"
  722.             }
  723.         }
  724.         *case: LANDSCAPE_CC90
  725.         {
  726.             *Command: CmdSelect
  727.             {
  728.                 *Order: DOC_SETUP.40
  729.                 *Cmd: "<1D>-1;" %d{(PhysPaperWidth / 2) }";" %d{(PhysPaperLength / 2) }"psE<1D>1poE"
  730.             }
  731.         }
  732.     }
  733. }
  734.  
  735. *% BlockMacros for other features
  736. *BlockMacro: BM_GAMMA_ADJUSTMENT
  737. {
  738.     *switch: DeviceGammaAdjustmentBrightness
  739.     {
  740.         *case: DriverDefault {}
  741.         *case: Dark2
  742.         {   *% 0.6
  743.             *switch: DeviceGammaAdjustmentChroma
  744.             {
  745.                 *case: Flat
  746.                 {
  747.                      *RedDeviceGamma: 6000
  748.                      *GreenDeviceGamma: 6000
  749.                      *BlueDeviceGamma: 6000
  750.                 }
  751.                 *case: Low
  752.                 {   *% +5% (+300)
  753.                     *switch: DeviceGammaAdjustmentHue
  754.                     {
  755.                         *case: Yellow
  756.                         {
  757.                             *RedDeviceGamma: 6300
  758.                             *GreenDeviceGamma: 6300
  759.                             *BlueDeviceGamma: 6000
  760.                         }
  761.                         *case: YellowishGreen
  762.                         {
  763.                             *RedDeviceGamma: 6150
  764.                             *GreenDeviceGamma: 6300
  765.                             *BlueDeviceGamma: 6000
  766.                         }
  767.                         *case: Green
  768.                         {
  769.                             *RedDeviceGamma: 6000
  770.                             *GreenDeviceGamma: 6300
  771.                             *BlueDeviceGamma: 6000
  772.                         }
  773.                         *case: BluishGreen
  774.                         {
  775.                             *RedDeviceGamma: 6000
  776.                             *GreenDeviceGamma: 6300
  777.                             *BlueDeviceGamma: 6150
  778.                         }
  779.                         *case: GreenishBlue
  780.                         {
  781.                             *RedDeviceGamma: 6000
  782.                             *GreenDeviceGamma: 6150
  783.                             *BlueDeviceGamma: 6300
  784.                         }
  785.                         *case: Blue
  786.                         {
  787.                             *RedDeviceGamma: 6000
  788.                             *GreenDeviceGamma: 6000
  789.                             *BlueDeviceGamma: 6300
  790.                         }
  791.                         *case: BluishPurple
  792.                         {
  793.                             *RedDeviceGamma: 6150
  794.                             *GreenDeviceGamma: 6000
  795.                             *BlueDeviceGamma: 6300
  796.                         }
  797.                         *case: Purple
  798.                         {
  799.                             *RedDeviceGamma: 6300
  800.                             *GreenDeviceGamma: 6000
  801.                             *BlueDeviceGamma: 6300
  802.                         }
  803.                         *case: ReddishPurple
  804.                         {
  805.                             *RedDeviceGamma: 6300
  806.                             *GreenDeviceGamma: 6000
  807.                             *BlueDeviceGamma: 6150
  808.                         }
  809.                         *case: Red
  810.                         {
  811.                             *RedDeviceGamma: 6300
  812.                             *GreenDeviceGamma: 6000
  813.                             *BlueDeviceGamma: 6000
  814.                         }
  815.                         *case: Orange
  816.                         {
  817.                             *RedDeviceGamma: 6300
  818.                             *GreenDeviceGamma: 6150
  819.                             *BlueDeviceGamma: 6000
  820.                         }
  821.                         *case: YellowishOrange
  822.                         {
  823.                             *RedDeviceGamma: 6300
  824.                             *GreenDeviceGamma: 6225
  825.                             *BlueDeviceGamma: 6000
  826.                         }
  827.                     }
  828.                 }
  829.                 *case: Medium
  830.                 {   *% +10% (+600)
  831.                     *switch: DeviceGammaAdjustmentHue
  832.                     {
  833.                         *case: Yellow
  834.                         {
  835.                             *RedDeviceGamma: 6600
  836.                             *GreenDeviceGamma: 6600
  837.                             *BlueDeviceGamma: 6000
  838.                         }
  839.                         *case: YellowishGreen
  840.                         {
  841.                             *RedDeviceGamma: 6300
  842.                             *GreenDeviceGamma: 6600
  843.                             *BlueDeviceGamma: 6000
  844.                         }
  845.                         *case: Green
  846.                         {
  847.                             *RedDeviceGamma: 6000
  848.                             *GreenDeviceGamma: 6600
  849.                             *BlueDeviceGamma: 6000
  850.                         }
  851.                         *case: BluishGreen
  852.                         {
  853.                             *RedDeviceGamma: 6000
  854.                             *GreenDeviceGamma: 6600
  855.                             *BlueDeviceGamma: 6300
  856.                         }
  857.                         *case: GreenishBlue
  858.                         {
  859.                             *RedDeviceGamma: 6000
  860.                             *GreenDeviceGamma: 6300
  861.                             *BlueDeviceGamma: 6600
  862.                         }
  863.                         *case: Blue
  864.                         {
  865.                             *RedDeviceGamma: 6000
  866.                             *GreenDeviceGamma: 6000
  867.                             *BlueDeviceGamma: 6600
  868.                         }
  869.                         *case: BluishPurple
  870.                         {
  871.                             *RedDeviceGamma: 6300
  872.                             *GreenDeviceGamma: 6000
  873.                             *BlueDeviceGamma: 6600
  874.                         }
  875.                         *case: Purple
  876.                         {
  877.                             *RedDeviceGamma: 6600
  878.                             *GreenDeviceGamma: 6000
  879.                             *BlueDeviceGamma: 6600
  880.                         }
  881.                         *case: ReddishPurple
  882.                         {
  883.                             *RedDeviceGamma: 6600
  884.                             *GreenDeviceGamma: 6000
  885.                             *BlueDeviceGamma: 6300
  886.                         }
  887.                         *case: Red
  888.                         {
  889.                             *RedDeviceGamma: 6600
  890.                             *GreenDeviceGamma: 6000
  891.                             *BlueDeviceGamma: 6000
  892.                         }
  893.                         *case: Orange
  894.                         {
  895.                             *RedDeviceGamma: 6600
  896.                             *GreenDeviceGamma: 6300
  897.                             *BlueDeviceGamma: 6000
  898.                         }
  899.                         *case: YellowishOrange
  900.                         {
  901.                             *RedDeviceGamma: 6600
  902.                             *GreenDeviceGamma: 6450
  903.                             *BlueDeviceGamma: 6000
  904.                         }
  905.                     }
  906.                 }
  907.                 *case: High
  908.                 {   *% +20% (+1200)
  909.                     *switch: DeviceGammaAdjustmentHue
  910.                     {
  911.                         *case: Yellow
  912.                         {
  913.                             *RedDeviceGamma: 7200
  914.                             *GreenDeviceGamma: 7200
  915.                             *BlueDeviceGamma: 6000
  916.                         }
  917.                         *case: YellowishGreen
  918.                         {
  919.                             *RedDeviceGamma: 6600
  920.                             *GreenDeviceGamma: 7200
  921.                             *BlueDeviceGamma: 6000
  922.                         }
  923.                         *case: Green
  924.                         {
  925.                             *RedDeviceGamma: 6000
  926.                             *GreenDeviceGamma: 7200
  927.                             *BlueDeviceGamma: 6000
  928.                         }
  929.                         *case: BluishGreen
  930.                         {
  931.                             *RedDeviceGamma: 6000
  932.                             *GreenDeviceGamma: 7200
  933.                             *BlueDeviceGamma: 6600
  934.                         }
  935.                         *case: GreenishBlue
  936.                         {
  937.                             *RedDeviceGamma: 6000
  938.                             *GreenDeviceGamma: 6600
  939.                             *BlueDeviceGamma: 7200
  940.                         }
  941.                         *case: Blue
  942.                         {
  943.                             *RedDeviceGamma: 6000
  944.                             *GreenDeviceGamma: 6000
  945.                             *BlueDeviceGamma: 6600
  946.                         }
  947.                         *case: BluishPurple
  948.                         {
  949.                             *RedDeviceGamma: 6600
  950.                             *GreenDeviceGamma: 6000
  951.                             *BlueDeviceGamma: 7200
  952.                         }
  953.                         *case: Purple
  954.                         {
  955.                             *RedDeviceGamma: 7200
  956.                             *GreenDeviceGamma: 6000
  957.                             *BlueDeviceGamma: 7200
  958.                         }
  959.                         *case: ReddishPurple
  960.                         {
  961.                             *RedDeviceGamma: 7200
  962.                             *GreenDeviceGamma: 6000
  963.                             *BlueDeviceGamma: 6600
  964.                         }
  965.                         *case: Red
  966.                         {
  967.                             *RedDeviceGamma: 7200
  968.                             *GreenDeviceGamma: 6000
  969.                             *BlueDeviceGamma: 6000
  970.                         }
  971.                         *case: Orange
  972.                         {
  973.                             *RedDeviceGamma: 7200
  974.                             *GreenDeviceGamma: 6600
  975.                             *BlueDeviceGamma: 6000
  976.                         }
  977.                         *case: YellowishOrange
  978.                         {
  979.                             *RedDeviceGamma: 7200
  980.                             *GreenDeviceGamma: 6900
  981.                             *BlueDeviceGamma: 6000
  982.                         }
  983.                     }
  984.                 }
  985.             }
  986.         }
  987.         *case: Dark1
  988.         {   *% 0.7
  989.             *switch: DeviceGammaAdjustmentChroma
  990.             {
  991.                 *case: Flat
  992.                 {
  993.                      *RedDeviceGamma: 7000
  994.                      *GreenDeviceGamma: 7000
  995.                      *BlueDeviceGamma: 7000
  996.                 }
  997.                 *case: Low
  998.                 {   *% +5% (+350)
  999.                     *switch: DeviceGammaAdjustmentHue
  1000.                     {
  1001.                         *case: Yellow
  1002.                         {
  1003.                             *RedDeviceGamma: 7350
  1004.                             *GreenDeviceGamma: 7350
  1005.                             *BlueDeviceGamma: 7000
  1006.                         }
  1007.                         *case: YellowishGreen
  1008.                         {
  1009.                             *RedDeviceGamma: 7175
  1010.                             *GreenDeviceGamma: 7350
  1011.                             *BlueDeviceGamma: 7000
  1012.                         }
  1013.                         *case: Green
  1014.                         {
  1015.                             *RedDeviceGamma: 7000
  1016.                             *GreenDeviceGamma: 7350
  1017.                             *BlueDeviceGamma: 7000
  1018.                         }
  1019.                         *case: BluishGreen
  1020.                         {
  1021.                             *RedDeviceGamma: 7000
  1022.                             *GreenDeviceGamma: 7350
  1023.                             *BlueDeviceGamma: 7175
  1024.                         }
  1025.                         *case: GreenishBlue
  1026.                         {
  1027.                             *RedDeviceGamma: 7000
  1028.                             *GreenDeviceGamma: 7175
  1029.                             *BlueDeviceGamma: 7350
  1030.                         }
  1031.                         *case: Blue
  1032.                         {
  1033.                             *RedDeviceGamma: 7000
  1034.                             *GreenDeviceGamma: 7000
  1035.                             *BlueDeviceGamma: 7350
  1036.                         }
  1037.                         *case: BluishPurple
  1038.                         {
  1039.                             *RedDeviceGamma: 7175
  1040.                             *GreenDeviceGamma: 7000
  1041.                             *BlueDeviceGamma: 7350
  1042.                         }
  1043.                         *case: Purple
  1044.                         {
  1045.                             *RedDeviceGamma: 7350
  1046.                             *GreenDeviceGamma: 7000
  1047.                             *BlueDeviceGamma: 7350
  1048.                         }
  1049.                         *case: ReddishPurple
  1050.                         {
  1051.                             *RedDeviceGamma: 7350
  1052.                             *GreenDeviceGamma: 7000
  1053.                             *BlueDeviceGamma: 7175
  1054.                         }
  1055.                         *case: Red
  1056.                         {
  1057.                             *RedDeviceGamma: 7350
  1058.                             *GreenDeviceGamma: 7000
  1059.                             *BlueDeviceGamma: 7000
  1060.                         }
  1061.                         *case: Orange
  1062.                         {
  1063.                             *RedDeviceGamma: 7350
  1064.                             *GreenDeviceGamma: 7175
  1065.                             *BlueDeviceGamma: 7000
  1066.                         }
  1067.                         *case: YellowishOrange
  1068.                         {
  1069.                             *RedDeviceGamma: 7350
  1070.                             *GreenDeviceGamma: 7263
  1071.                             *BlueDeviceGamma: 7000
  1072.                         }
  1073.                     }
  1074.                 }
  1075.                 *case: Medium
  1076.                 {   *% +10% (+700)
  1077.                     *switch: DeviceGammaAdjustmentHue
  1078.                     {
  1079.                         *case: Yellow
  1080.                         {
  1081.                             *RedDeviceGamma: 7700
  1082.                             *GreenDeviceGamma: 7700
  1083.                             *BlueDeviceGamma: 7000
  1084.                         }
  1085.                         *case: YellowishGreen
  1086.                         {
  1087.                             *RedDeviceGamma: 7350
  1088.                             *GreenDeviceGamma: 7700
  1089.                             *BlueDeviceGamma: 7000
  1090.                         }
  1091.                         *case: Green
  1092.                         {
  1093.                             *RedDeviceGamma: 7000
  1094.                             *GreenDeviceGamma: 7700
  1095.                             *BlueDeviceGamma: 7000
  1096.                         }
  1097.                         *case: BluishGreen
  1098.                         {
  1099.                             *RedDeviceGamma: 7000
  1100.                             *GreenDeviceGamma: 7700
  1101.                             *BlueDeviceGamma: 7350
  1102.                         }
  1103.                         *case: GreenishBlue
  1104.                         {
  1105.                             *RedDeviceGamma: 7000
  1106.                             *GreenDeviceGamma: 7350
  1107.                             *BlueDeviceGamma: 7700
  1108.                         }
  1109.                         *case: Blue
  1110.                         {
  1111.                             *RedDeviceGamma: 7000
  1112.                             *GreenDeviceGamma: 7000
  1113.                             *BlueDeviceGamma: 7700
  1114.                         }
  1115.                         *case: BluishPurple
  1116.                         {
  1117.                             *RedDeviceGamma: 7350
  1118.                             *GreenDeviceGamma: 7000
  1119.                             *BlueDeviceGamma: 7700
  1120.                         }
  1121.                         *case: Purple
  1122.                         {
  1123.                             *RedDeviceGamma: 7700
  1124.                             *GreenDeviceGamma: 7000
  1125.                             *BlueDeviceGamma: 7700
  1126.                         }
  1127.                         *case: ReddishPurple
  1128.                         {
  1129.                             *RedDeviceGamma: 7700
  1130.                             *GreenDeviceGamma: 7000
  1131.                             *BlueDeviceGamma: 7350
  1132.                         }
  1133.                         *case: Red
  1134.                         {
  1135.                             *RedDeviceGamma: 7700
  1136.                             *GreenDeviceGamma: 7000
  1137.                             *BlueDeviceGamma: 7000
  1138.                         }
  1139.                         *case: Orange
  1140.                         {
  1141.                             *RedDeviceGamma: 7700
  1142.                             *GreenDeviceGamma: 7350
  1143.                             *BlueDeviceGamma: 7000
  1144.                         }
  1145.                         *case: YellowishOrange
  1146.                         {
  1147.                             *RedDeviceGamma: 7700
  1148.                             *GreenDeviceGamma: 7525
  1149.                             *BlueDeviceGamma: 7000
  1150.                         }
  1151.                     }
  1152.                 }
  1153.                 *case: High
  1154.                 {   *% +20% (+1400)
  1155.                     *switch: DeviceGammaAdjustmentHue
  1156.                     {
  1157.                         *case: Yellow
  1158.                         {
  1159.                             *RedDeviceGamma: 8400
  1160.                             *GreenDeviceGamma: 8400
  1161.                             *BlueDeviceGamma: 7000
  1162.                         }
  1163.                         *case: YellowishGreen
  1164.                         {
  1165.                             *RedDeviceGamma: 7700
  1166.                             *GreenDeviceGamma: 8400
  1167.                             *BlueDeviceGamma: 7000
  1168.                         }
  1169.                         *case: Green
  1170.                         {
  1171.                             *RedDeviceGamma: 7000
  1172.                             *GreenDeviceGamma: 8400
  1173.                             *BlueDeviceGamma: 7000
  1174.                         }
  1175.                         *case: BluishGreen
  1176.                         {
  1177.                             *RedDeviceGamma: 7000
  1178.                             *GreenDeviceGamma: 8400
  1179.                             *BlueDeviceGamma: 7700
  1180.                         }
  1181.                         *case: GreenishBlue
  1182.                         {
  1183.                             *RedDeviceGamma: 7000
  1184.                             *GreenDeviceGamma: 7700
  1185.                             *BlueDeviceGamma: 8400
  1186.                         }
  1187.                         *case: Blue
  1188.                         {
  1189.                             *RedDeviceGamma: 7000
  1190.                             *GreenDeviceGamma: 7000
  1191.                             *BlueDeviceGamma: 8400
  1192.                         }
  1193.                         *case: BluishPurple
  1194.                         {
  1195.                             *RedDeviceGamma: 7700
  1196.                             *GreenDeviceGamma: 7000
  1197.                             *BlueDeviceGamma: 8400
  1198.                         }
  1199.                         *case: Purple
  1200.                         {
  1201.                             *RedDeviceGamma: 8400
  1202.                             *GreenDeviceGamma: 7000
  1203.                             *BlueDeviceGamma: 8400
  1204.                         }
  1205.                         *case: ReddishPurple
  1206.                         {
  1207.                             *RedDeviceGamma: 8400
  1208.                             *GreenDeviceGamma: 7000
  1209.                             *BlueDeviceGamma: 7700
  1210.                         }
  1211.                         *case: Red
  1212.                         {
  1213.                             *RedDeviceGamma: 8400
  1214.                             *GreenDeviceGamma: 7000
  1215.                             *BlueDeviceGamma: 7000
  1216.                         }
  1217.                         *case: Orange
  1218.                         {
  1219.                             *RedDeviceGamma: 8400
  1220.                             *GreenDeviceGamma: 7700
  1221.                             *BlueDeviceGamma: 7000
  1222.                         }
  1223.                         *case: YellowishOrange
  1224.                         {
  1225.                             *RedDeviceGamma: 8400
  1226.                             *GreenDeviceGamma: 8050
  1227.                             *BlueDeviceGamma: 7000
  1228.                         }
  1229.                     }
  1230.                 }
  1231.             }
  1232.         }
  1233.         *case: Normal
  1234.         {   *% 0.8
  1235.             *switch: DeviceGammaAdjustmentChroma
  1236.             {
  1237.                 *case: Flat
  1238.                 {
  1239.                      *RedDeviceGamma: 8000
  1240.                      *GreenDeviceGamma: 8000
  1241.                      *BlueDeviceGamma: 8000
  1242.                 }
  1243.                 *case: Low
  1244.                 {   *% +5% (+400)
  1245.                     *switch: DeviceGammaAdjustmentHue
  1246.                     {
  1247.                         *case: Yellow
  1248.                         {
  1249.                             *RedDeviceGamma: 8400
  1250.                             *GreenDeviceGamma: 8400
  1251.                             *BlueDeviceGamma: 8000
  1252.                         }
  1253.                         *case: YellowishGreen
  1254.                         {
  1255.                             *RedDeviceGamma: 8200
  1256.                             *GreenDeviceGamma: 8400
  1257.                             *BlueDeviceGamma: 8000
  1258.                         }
  1259.                         *case: Green
  1260.                         {
  1261.                             *RedDeviceGamma: 8000
  1262.                             *GreenDeviceGamma: 8400
  1263.                             *BlueDeviceGamma: 8000
  1264.                         }
  1265.                         *case: BluishGreen
  1266.                         {
  1267.                             *RedDeviceGamma: 8000
  1268.                             *GreenDeviceGamma: 8400
  1269.                             *BlueDeviceGamma: 8200
  1270.                         }
  1271.                         *case: GreenishBlue
  1272.                         {
  1273.                             *RedDeviceGamma: 8000
  1274.                             *GreenDeviceGamma: 8200
  1275.                             *BlueDeviceGamma: 8400
  1276.                         }
  1277.                         *case: Blue
  1278.                         {
  1279.                             *RedDeviceGamma: 8000
  1280.                             *GreenDeviceGamma: 8000
  1281.                             *BlueDeviceGamma: 8400
  1282.                         }
  1283.                         *case: BluishPurple
  1284.                         {
  1285.                             *RedDeviceGamma: 8200
  1286.                             *GreenDeviceGamma: 8000
  1287.                             *BlueDeviceGamma: 8400
  1288.                         }
  1289.                         *case: Purple
  1290.                         {
  1291.                             *RedDeviceGamma: 8400
  1292.                             *GreenDeviceGamma: 8000
  1293.                             *BlueDeviceGamma: 8400
  1294.                         }
  1295.                         *case: ReddishPurple
  1296.                         {
  1297.                             *RedDeviceGamma: 8400
  1298.                             *GreenDeviceGamma: 8000
  1299.                             *BlueDeviceGamma: 8200
  1300.                         }
  1301.                         *case: Red
  1302.                         {
  1303.                             *RedDeviceGamma: 8400
  1304.                             *GreenDeviceGamma: 8000
  1305.                             *BlueDeviceGamma: 8000
  1306.                         }
  1307.                         *case: Orange
  1308.                         {
  1309.                             *RedDeviceGamma: 8400
  1310.                             *GreenDeviceGamma: 8200
  1311.                             *BlueDeviceGamma: 8000
  1312.                         }
  1313.                         *case: YellowishOrange
  1314.                         {
  1315.                             *RedDeviceGamma: 8400
  1316.                             *GreenDeviceGamma: 8300
  1317.                             *BlueDeviceGamma: 8000
  1318.                         }
  1319.                     }
  1320.                 }
  1321.                 *case: Medium
  1322.                 {   *% +10% (+800)
  1323.                     *switch: DeviceGammaAdjustmentHue
  1324.                     {
  1325.                         *case: Yellow
  1326.                         {
  1327.                             *RedDeviceGamma: 8800
  1328.                             *GreenDeviceGamma: 8800
  1329.                             *BlueDeviceGamma: 8000
  1330.                         }
  1331.                         *case: YellowishGreen
  1332.                         {
  1333.                             *RedDeviceGamma: 8400
  1334.                             *GreenDeviceGamma: 8800
  1335.                             *BlueDeviceGamma: 8000
  1336.                         }
  1337.                         *case: Green
  1338.                         {
  1339.                             *RedDeviceGamma: 8000
  1340.                             *GreenDeviceGamma: 8800
  1341.                             *BlueDeviceGamma: 8000
  1342.                         }
  1343.                         *case: BluishGreen
  1344.                         {
  1345.                             *RedDeviceGamma: 8000
  1346.                             *GreenDeviceGamma: 8800
  1347.                             *BlueDeviceGamma: 8400
  1348.                         }
  1349.                         *case: GreenishBlue
  1350.                         {
  1351.                             *RedDeviceGamma: 8000
  1352.                             *GreenDeviceGamma: 8400
  1353.                             *BlueDeviceGamma: 8800
  1354.                         }
  1355.                         *case: Blue
  1356.                         {
  1357.                             *RedDeviceGamma: 8000
  1358.                             *GreenDeviceGamma: 8000
  1359.                             *BlueDeviceGamma: 8800
  1360.                         }
  1361.                         *case: BluishPurple
  1362.                         {
  1363.                             *RedDeviceGamma: 8400
  1364.                             *GreenDeviceGamma: 8000
  1365.                             *BlueDeviceGamma: 8800
  1366.                         }
  1367.                         *case: Purple
  1368.                         {
  1369.                             *RedDeviceGamma: 8800
  1370.                             *GreenDeviceGamma: 8000
  1371.                             *BlueDeviceGamma: 8800
  1372.                         }
  1373.                         *case: ReddishPurple
  1374.                         {
  1375.                             *RedDeviceGamma: 8800
  1376.                             *GreenDeviceGamma: 8000
  1377.                             *BlueDeviceGamma: 8400
  1378.                         }
  1379.                         *case: Red
  1380.                         {
  1381.                             *RedDeviceGamma: 8800
  1382.                             *GreenDeviceGamma: 8000
  1383.                             *BlueDeviceGamma: 8000
  1384.                         }
  1385.                         *case: Orange
  1386.                         {
  1387.                             *RedDeviceGamma: 8800
  1388.                             *GreenDeviceGamma: 8400
  1389.                             *BlueDeviceGamma: 8000
  1390.                         }
  1391.                         *case: YellowishOrange
  1392.                         {
  1393.                             *RedDeviceGamma: 8800
  1394.                             *GreenDeviceGamma: 8600
  1395.                             *BlueDeviceGamma: 8000
  1396.                         }
  1397.                     }
  1398.                 }
  1399.                 *case: High
  1400.                 {   *% +20% (+1600)
  1401.                     *switch: DeviceGammaAdjustmentHue
  1402.                     {
  1403.                         *case: Yellow
  1404.                         {
  1405.                             *RedDeviceGamma: 9600
  1406.                             *GreenDeviceGamma: 9600
  1407.                             *BlueDeviceGamma: 8000
  1408.                         }
  1409.                         *case: YellowishGreen
  1410.                         {
  1411.                             *RedDeviceGamma: 8800
  1412.                             *GreenDeviceGamma: 9600
  1413.                             *BlueDeviceGamma: 8000
  1414.                         }
  1415.                         *case: Green
  1416.                         {
  1417.                             *RedDeviceGamma: 8000
  1418.                             *GreenDeviceGamma: 9600
  1419.                             *BlueDeviceGamma: 8000
  1420.                         }
  1421.                         *case: BluishGreen
  1422.                         {
  1423.                             *RedDeviceGamma: 8000
  1424.                             *GreenDeviceGamma: 9600
  1425.                             *BlueDeviceGamma: 8800
  1426.                         }
  1427.                         *case: GreenishBlue
  1428.                         {
  1429.                             *RedDeviceGamma: 8000
  1430.                             *GreenDeviceGamma: 8800
  1431.                             *BlueDeviceGamma: 9600
  1432.                         }
  1433.                         *case: Blue
  1434.                         {
  1435.                             *RedDeviceGamma: 8000
  1436.                             *GreenDeviceGamma: 8000
  1437.                             *BlueDeviceGamma: 9600
  1438.                         }
  1439.                         *case: BluishPurple
  1440.                         {
  1441.                             *RedDeviceGamma: 8800
  1442.                             *GreenDeviceGamma: 8000
  1443.                             *BlueDeviceGamma: 9600
  1444.                         }
  1445.                         *case: Purple
  1446.                         {
  1447.                             *RedDeviceGamma: 9600
  1448.                             *GreenDeviceGamma: 8000
  1449.                             *BlueDeviceGamma: 9600
  1450.                         }
  1451.                         *case: ReddishPurple
  1452.                         {
  1453.                             *RedDeviceGamma: 9600
  1454.                             *GreenDeviceGamma: 8000
  1455.                             *BlueDeviceGamma: 8800
  1456.                         }
  1457.                         *case: Red
  1458.                         {
  1459.                             *RedDeviceGamma: 9600
  1460.                             *GreenDeviceGamma: 8000
  1461.                             *BlueDeviceGamma: 8000
  1462.                         }
  1463.                         *case: Orange
  1464.                         {
  1465.                             *RedDeviceGamma: 9600
  1466.                             *GreenDeviceGamma: 8800
  1467.                             *BlueDeviceGamma: 8000
  1468.                         }
  1469.                         *case: YellowishOrange
  1470.                         {
  1471.                             *RedDeviceGamma: 9600
  1472.                             *GreenDeviceGamma: 9200
  1473.                             *BlueDeviceGamma: 8000
  1474.                         }
  1475.                     }
  1476.                 }
  1477.             }
  1478.         }
  1479.         *case: Light1
  1480.         {   *% 0.925
  1481.             *switch: DeviceGammaAdjustmentChroma
  1482.             {
  1483.                 *case: Flat
  1484.                 {
  1485.                      *RedDeviceGamma: 9250
  1486.                      *GreenDeviceGamma: 9250
  1487.                      *BlueDeviceGamma: 9250
  1488.                 }
  1489.                 *case: Low
  1490.                 {   *% +5% (+462)
  1491.                     *switch: DeviceGammaAdjustmentHue
  1492.                     {
  1493.                         *case: Yellow
  1494.                         {
  1495.                             *RedDeviceGamma: 9712
  1496.                             *GreenDeviceGamma: 9712
  1497.                             *BlueDeviceGamma: 9250
  1498.                         }
  1499.                         *case: YellowishGreen
  1500.                         {
  1501.                             *RedDeviceGamma: 9481
  1502.                             *GreenDeviceGamma: 9712
  1503.                             *BlueDeviceGamma: 9250
  1504.                         }
  1505.                         *case: Green
  1506.                         {
  1507.                             *RedDeviceGamma: 9250
  1508.                             *GreenDeviceGamma: 9712
  1509.                             *BlueDeviceGamma: 9250
  1510.                         }
  1511.                         *case: BluishGreen
  1512.                         {
  1513.                             *RedDeviceGamma: 9250
  1514.                             *GreenDeviceGamma: 9712
  1515.                             *BlueDeviceGamma: 9481
  1516.                         }
  1517.                         *case: GreenishBlue
  1518.                         {
  1519.                             *RedDeviceGamma: 9250
  1520.                             *GreenDeviceGamma: 9481
  1521.                             *BlueDeviceGamma: 9712
  1522.                         }
  1523.                         *case: Blue
  1524.                         {
  1525.                             *RedDeviceGamma: 9250
  1526.                             *GreenDeviceGamma: 9250
  1527.                             *BlueDeviceGamma: 9712
  1528.                         }
  1529.                         *case: BluishPurple
  1530.                         {
  1531.                             *RedDeviceGamma: 9481
  1532.                             *GreenDeviceGamma: 9250
  1533.                             *BlueDeviceGamma: 9712
  1534.                         }
  1535.                         *case: Purple
  1536.                         {
  1537.                             *RedDeviceGamma: 9712
  1538.                             *GreenDeviceGamma: 9250
  1539.                             *BlueDeviceGamma: 9712
  1540.                         }
  1541.                         *case: ReddishPurple
  1542.                         {
  1543.                             *RedDeviceGamma: 9712
  1544.                             *GreenDeviceGamma: 9250
  1545.                             *BlueDeviceGamma: 9481
  1546.                         }
  1547.                         *case: Red
  1548.                         {
  1549.                             *RedDeviceGamma: 9712
  1550.                             *GreenDeviceGamma: 9250
  1551.                             *BlueDeviceGamma: 9250
  1552.                         }
  1553.                         *case: Orange
  1554.                         {
  1555.                             *RedDeviceGamma: 9712
  1556.                             *GreenDeviceGamma: 9481
  1557.                             *BlueDeviceGamma: 9250
  1558.                         }
  1559.                         *case: YellowishOrange
  1560.                         {
  1561.                             *RedDeviceGamma: 9712
  1562.                             *GreenDeviceGamma: 9597
  1563.                             *BlueDeviceGamma: 9250
  1564.                         }
  1565.                     }
  1566.                 }
  1567.                 *case: Medium
  1568.                 {   *% +10% (+925)
  1569.                     *switch: DeviceGammaAdjustmentHue
  1570.                     {
  1571.                         *case: Yellow
  1572.                         {
  1573.                             *RedDeviceGamma: 10175
  1574.                             *GreenDeviceGamma: 10175
  1575.                             *BlueDeviceGamma: 9250
  1576.                         }
  1577.                         *case: YellowishGreen
  1578.                         {
  1579.                             *RedDeviceGamma: 9712
  1580.                             *GreenDeviceGamma: 10175
  1581.                             *BlueDeviceGamma: 9250
  1582.                         }
  1583.                         *case: Green
  1584.                         {
  1585.                             *RedDeviceGamma: 9250
  1586.                             *GreenDeviceGamma: 10175
  1587.                             *BlueDeviceGamma: 9250
  1588.                         }
  1589.                         *case: BluishGreen
  1590.                         {
  1591.                             *RedDeviceGamma: 9250
  1592.                             *GreenDeviceGamma: 10175
  1593.                             *BlueDeviceGamma: 9712
  1594.                         }
  1595.                         *case: GreenishBlue
  1596.                         {
  1597.                             *RedDeviceGamma: 9250
  1598.                             *GreenDeviceGamma: 9712
  1599.                             *BlueDeviceGamma: 10175
  1600.                         }
  1601.                         *case: Blue
  1602.                         {
  1603.                             *RedDeviceGamma: 9250
  1604.                             *GreenDeviceGamma: 9250
  1605.                             *BlueDeviceGamma: 10175
  1606.                         }
  1607.                         *case: BluishPurple
  1608.                         {
  1609.                             *RedDeviceGamma: 9712
  1610.                             *GreenDeviceGamma: 9250
  1611.                             *BlueDeviceGamma: 10175
  1612.                         }
  1613.                         *case: Purple
  1614.                         {
  1615.                             *RedDeviceGamma: 10175
  1616.                             *GreenDeviceGamma: 9250
  1617.                             *BlueDeviceGamma: 10175
  1618.                         }
  1619.                         *case: ReddishPurple
  1620.                         {
  1621.                             *RedDeviceGamma: 10175
  1622.                             *GreenDeviceGamma: 9250
  1623.                             *BlueDeviceGamma: 9712
  1624.                         }
  1625.                         *case: Red
  1626.                         {
  1627.                             *RedDeviceGamma: 10175
  1628.                             *GreenDeviceGamma: 9250
  1629.                             *BlueDeviceGamma: 9250
  1630.                         }
  1631.                         *case: Orange
  1632.                         {
  1633.                             *RedDeviceGamma: 10175
  1634.                             *GreenDeviceGamma: 9712
  1635.                             *BlueDeviceGamma: 9250
  1636.                         }
  1637.                         *case: YellowishOrange
  1638.                         {
  1639.                             *RedDeviceGamma: 10175
  1640.                             *GreenDeviceGamma: 9944
  1641.                             *BlueDeviceGamma: 9250
  1642.                         }
  1643.                     }
  1644.                 }
  1645.                 *case: High
  1646.                 {   *% +20% (+1850)
  1647.                     *switch: DeviceGammaAdjustmentHue
  1648.                     {
  1649.                         *case: Yellow
  1650.                         {
  1651.                             *RedDeviceGamma: 11100
  1652.                             *GreenDeviceGamma: 11100
  1653.                             *BlueDeviceGamma: 9250
  1654.                         }
  1655.                         *case: YellowishGreen
  1656.                         {
  1657.                             *RedDeviceGamma: 10175
  1658.                             *GreenDeviceGamma: 11100
  1659.                             *BlueDeviceGamma: 9250
  1660.                         }
  1661.                         *case: Green
  1662.                         {
  1663.                             *RedDeviceGamma: 9250
  1664.                             *GreenDeviceGamma: 11100
  1665.                             *BlueDeviceGamma: 9250
  1666.                         }
  1667.                         *case: BluishGreen
  1668.                         {
  1669.                             *RedDeviceGamma: 9250
  1670.                             *GreenDeviceGamma: 11100
  1671.                             *BlueDeviceGamma: 10175
  1672.                         }
  1673.                         *case: GreenishBlue
  1674.                         {
  1675.                             *RedDeviceGamma: 9250
  1676.                             *GreenDeviceGamma: 10175
  1677.                             *BlueDeviceGamma: 11100
  1678.                         }
  1679.                         *case: Blue
  1680.                         {
  1681.                             *RedDeviceGamma: 9250
  1682.                             *GreenDeviceGamma: 9250
  1683.                             *BlueDeviceGamma: 11100
  1684.                         }
  1685.                         *case: BluishPurple
  1686.                         {
  1687.                             *RedDeviceGamma: 10175
  1688.                             *GreenDeviceGamma: 9250
  1689.                             *BlueDeviceGamma: 11100
  1690.                         }
  1691.                         *case: Purple
  1692.                         {
  1693.                             *RedDeviceGamma: 11100
  1694.                             *GreenDeviceGamma: 9250
  1695.                             *BlueDeviceGamma: 11100
  1696.                         }
  1697.                         *case: ReddishPurple
  1698.                         {
  1699.                             *RedDeviceGamma: 11100
  1700.                             *GreenDeviceGamma: 9250
  1701.                             *BlueDeviceGamma: 10175
  1702.                         }
  1703.                         *case: Red
  1704.                         {
  1705.                             *RedDeviceGamma: 11100
  1706.                             *GreenDeviceGamma: 9250
  1707.                             *BlueDeviceGamma: 9250
  1708.                         }
  1709.                         *case: Orange
  1710.                         {
  1711.                             *RedDeviceGamma: 11100
  1712.                             *GreenDeviceGamma: 10175
  1713.                             *BlueDeviceGamma: 9250
  1714.                         }
  1715.                         *case: YellowishOrange
  1716.                         {
  1717.                             *RedDeviceGamma: 11100
  1718.                             *GreenDeviceGamma: 10812
  1719.                             *BlueDeviceGamma: 9250
  1720.                         }
  1721.                     }
  1722.                 }
  1723.             }
  1724.         }
  1725.         *case: Light2
  1726.         {   *% 1.0
  1727.             *switch: DeviceGammaAdjustmentChroma
  1728.             {
  1729.                 *case: Flat
  1730.                 {
  1731.                      *RedDeviceGamma: 10000
  1732.                      *GreenDeviceGamma: 10000
  1733.                      *BlueDeviceGamma: 10000
  1734.                 }
  1735.                 *case: Low
  1736.                 {   *% +5% (+500)
  1737.                     *switch: DeviceGammaAdjustmentHue
  1738.                     {
  1739.                         *case: Yellow
  1740.                         {
  1741.                             *RedDeviceGamma: 10500
  1742.                             *GreenDeviceGamma: 10500
  1743.                             *BlueDeviceGamma: 10000
  1744.                         }
  1745.                         *case: YellowishGreen
  1746.                         {
  1747.                             *RedDeviceGamma: 10250
  1748.                             *GreenDeviceGamma: 10500
  1749.                             *BlueDeviceGamma: 10000
  1750.                         }
  1751.                         *case: Green
  1752.                         {
  1753.                             *RedDeviceGamma: 10000
  1754.                             *GreenDeviceGamma: 10500
  1755.                             *BlueDeviceGamma: 10000
  1756.                         }
  1757.                         *case: BluishGreen
  1758.                         {
  1759.                             *RedDeviceGamma: 10000
  1760.                             *GreenDeviceGamma: 10500
  1761.                             *BlueDeviceGamma: 10250
  1762.                         }
  1763.                         *case: GreenishBlue
  1764.                         {
  1765.                             *RedDeviceGamma: 10000
  1766.                             *GreenDeviceGamma: 10250
  1767.                             *BlueDeviceGamma: 10500
  1768.                         }
  1769.                         *case: Blue
  1770.                         {
  1771.                             *RedDeviceGamma: 10000
  1772.                             *GreenDeviceGamma: 10000
  1773.                             *BlueDeviceGamma: 10500
  1774.                         }
  1775.                         *case: BluishPurple
  1776.                         {
  1777.                             *RedDeviceGamma: 10250
  1778.                             *GreenDeviceGamma: 10000
  1779.                             *BlueDeviceGamma: 10500
  1780.                         }
  1781.                         *case: Purple
  1782.                         {
  1783.                             *RedDeviceGamma: 10500
  1784.                             *GreenDeviceGamma: 10000
  1785.                             *BlueDeviceGamma: 10500
  1786.                         }
  1787.                         *case: ReddishPurple
  1788.                         {
  1789.                             *RedDeviceGamma: 10500
  1790.                             *GreenDeviceGamma: 10000
  1791.                             *BlueDeviceGamma: 10250
  1792.                         }
  1793.                         *case: Red
  1794.                         {
  1795.                             *RedDeviceGamma: 10500
  1796.                             *GreenDeviceGamma: 10000
  1797.                             *BlueDeviceGamma: 10000
  1798.                         }
  1799.                         *case: Orange
  1800.                         {
  1801.                             *RedDeviceGamma: 10500
  1802.                             *GreenDeviceGamma: 10250
  1803.                             *BlueDeviceGamma: 10000
  1804.                         }
  1805.                         *case: YellowishOrange
  1806.                         {
  1807.                             *RedDeviceGamma: 10500
  1808.                             *GreenDeviceGamma: 10375
  1809.                             *BlueDeviceGamma: 10000
  1810.                         }
  1811.                     }
  1812.                 }
  1813.                 *case: Medium
  1814.                 {   *% +10% (+1000)
  1815.                     *switch: DeviceGammaAdjustmentHue
  1816.                     {
  1817.                         *case: Yellow
  1818.                         {
  1819.                             *RedDeviceGamma: 11000
  1820.                             *GreenDeviceGamma: 11000
  1821.                             *BlueDeviceGamma: 10000
  1822.                         }
  1823.                         *case: YellowishGreen
  1824.                         {
  1825.                             *RedDeviceGamma: 10500
  1826.                             *GreenDeviceGamma: 11000
  1827.                             *BlueDeviceGamma: 10000
  1828.                         }
  1829.                         *case: Green
  1830.                         {
  1831.                             *RedDeviceGamma: 10000
  1832.                             *GreenDeviceGamma: 11000
  1833.                             *BlueDeviceGamma: 10000
  1834.                         }
  1835.                         *case: BluishGreen
  1836.                         {
  1837.                             *RedDeviceGamma: 10000
  1838.                             *GreenDeviceGamma: 11000
  1839.                             *BlueDeviceGamma: 10500
  1840.                         }
  1841.                         *case: GreenishBlue
  1842.                         {
  1843.                             *RedDeviceGamma: 10000
  1844.                             *GreenDeviceGamma: 10500
  1845.                             *BlueDeviceGamma: 11000
  1846.                         }
  1847.                         *case: Blue
  1848.                         {
  1849.                             *RedDeviceGamma: 10000
  1850.                             *GreenDeviceGamma: 10000
  1851.                             *BlueDeviceGamma: 11000
  1852.                         }
  1853.                         *case: BluishPurple
  1854.                         {
  1855.                             *RedDeviceGamma: 10500
  1856.                             *GreenDeviceGamma: 10000
  1857.                             *BlueDeviceGamma: 11000
  1858.                         }
  1859.                         *case: Purple
  1860.                         {
  1861.                             *RedDeviceGamma: 11000
  1862.                             *GreenDeviceGamma: 10000
  1863.                             *BlueDeviceGamma: 11000
  1864.                         }
  1865.                         *case: ReddishPurple
  1866.                         {
  1867.                             *RedDeviceGamma: 11000
  1868.                             *GreenDeviceGamma: 10000
  1869.                             *BlueDeviceGamma: 10500
  1870.                         }
  1871.                         *case: Red
  1872.                         {
  1873.                             *RedDeviceGamma: 11000
  1874.                             *GreenDeviceGamma: 10000
  1875.                             *BlueDeviceGamma: 10000
  1876.                         }
  1877.                         *case: Orange
  1878.                         {
  1879.                             *RedDeviceGamma: 11000
  1880.                             *GreenDeviceGamma: 10500
  1881.                             *BlueDeviceGamma: 10000
  1882.                         }
  1883.                         *case: YellowishOrange
  1884.                         {
  1885.                             *RedDeviceGamma: 11000
  1886.                             *GreenDeviceGamma: 10750
  1887.                             *BlueDeviceGamma: 10000
  1888.                         }
  1889.                     }
  1890.                 }
  1891.                 *case: High
  1892.                 {   *% +20% (+2000)
  1893.                     *switch: DeviceGammaAdjustmentHue
  1894.                     {
  1895.                         *case: Yellow
  1896.                         {
  1897.                             *RedDeviceGamma: 12000
  1898.                             *GreenDeviceGamma: 12000
  1899.                             *BlueDeviceGamma: 10000
  1900.                         }
  1901.                         *case: YellowishGreen
  1902.                         {
  1903.                             *RedDeviceGamma: 11000
  1904.                             *GreenDeviceGamma: 12000
  1905.                             *BlueDeviceGamma: 10000
  1906.                         }
  1907.                         *case: Green
  1908.                         {
  1909.                             *RedDeviceGamma: 10000
  1910.                             *GreenDeviceGamma: 12000
  1911.                             *BlueDeviceGamma: 10000
  1912.                         }
  1913.                         *case: BluishGreen
  1914.                         {
  1915.                             *RedDeviceGamma: 10000
  1916.                             *GreenDeviceGamma: 12000
  1917.                             *BlueDeviceGamma: 11000
  1918.                         }
  1919.                         *case: GreenishBlue
  1920.                         {
  1921.                             *RedDeviceGamma: 10000
  1922.                             *GreenDeviceGamma: 11000
  1923.                             *BlueDeviceGamma: 12000
  1924.                         }
  1925.                         *case: Blue
  1926.                         {
  1927.                             *RedDeviceGamma: 10000
  1928.                             *GreenDeviceGamma: 10000
  1929.                             *BlueDeviceGamma: 12000
  1930.                         }
  1931.                         *case: BluishPurple
  1932.                         {
  1933.                             *RedDeviceGamma: 11000
  1934.                             *GreenDeviceGamma: 10000
  1935.                             *BlueDeviceGamma: 12000
  1936.                         }
  1937.                         *case: Purple
  1938.                         {
  1939.                             *RedDeviceGamma: 12000
  1940.                             *GreenDeviceGamma: 10000
  1941.                             *BlueDeviceGamma: 12000
  1942.                         }
  1943.                         *case: ReddishPurple
  1944.                         {
  1945.                             *RedDeviceGamma: 12000
  1946.                             *GreenDeviceGamma: 10000
  1947.                             *BlueDeviceGamma: 11000
  1948.                         }
  1949.                         *case: Red
  1950.                         {
  1951.                             *RedDeviceGamma: 12000
  1952.                             *GreenDeviceGamma: 10000
  1953.                             *BlueDeviceGamma: 10000
  1954.                         }
  1955.                         *case: Orange
  1956.                         {
  1957.                             *RedDeviceGamma: 12000
  1958.                             *GreenDeviceGamma: 11000
  1959.                             *BlueDeviceGamma: 10000
  1960.                         }
  1961.                         *case: YellowishOrange
  1962.                         {
  1963.                             *RedDeviceGamma: 12000
  1964.                             *GreenDeviceGamma: 11500
  1965.                             *BlueDeviceGamma: 10000
  1966.                         }
  1967.                     }
  1968.                 }
  1969.             }
  1970.         }
  1971.         *case: Light3
  1972.         {   *% 1.2
  1973.             *switch: DeviceGammaAdjustmentChroma
  1974.             {
  1975.                 *case: Flat
  1976.                 {
  1977.                      *RedDeviceGamma: 12000
  1978.                      *GreenDeviceGamma: 12000
  1979.                      *BlueDeviceGamma: 12000
  1980.                 }
  1981.                 *case: Low
  1982.                 {   *% +5% (+600)
  1983.                     *switch: DeviceGammaAdjustmentHue
  1984.                     {
  1985.                         *case: Yellow
  1986.                         {
  1987.                             *RedDeviceGamma: 12600
  1988.                             *GreenDeviceGamma: 12600
  1989.                             *BlueDeviceGamma: 12000
  1990.                         }
  1991.                         *case: YellowishGreen
  1992.                         {
  1993.                             *RedDeviceGamma: 12300
  1994.                             *GreenDeviceGamma: 12600
  1995.                             *BlueDeviceGamma: 12000
  1996.                         }
  1997.                         *case: Green
  1998.                         {
  1999.                             *RedDeviceGamma: 12000
  2000.                             *GreenDeviceGamma: 12600
  2001.                             *BlueDeviceGamma: 12000
  2002.                         }
  2003.                         *case: BluishGreen
  2004.                         {
  2005.                             *RedDeviceGamma: 12000
  2006.                             *GreenDeviceGamma: 12600
  2007.                             *BlueDeviceGamma: 12300
  2008.                         }
  2009.                         *case: GreenishBlue
  2010.                         {
  2011.                             *RedDeviceGamma: 12000
  2012.                             *GreenDeviceGamma: 12300
  2013.                             *BlueDeviceGamma: 12600
  2014.                         }
  2015.                         *case: Blue
  2016.                         {
  2017.                             *RedDeviceGamma: 12000
  2018.                             *GreenDeviceGamma: 12000
  2019.                             *BlueDeviceGamma: 12600
  2020.                         }
  2021.                         *case: BluishPurple
  2022.                         {
  2023.                             *RedDeviceGamma: 12300
  2024.                             *GreenDeviceGamma: 12000
  2025.                             *BlueDeviceGamma: 12600
  2026.                         }
  2027.                         *case: Purple
  2028.                         {
  2029.                             *RedDeviceGamma: 12600
  2030.                             *GreenDeviceGamma: 12000
  2031.                             *BlueDeviceGamma: 12600
  2032.                         }
  2033.                         *case: ReddishPurple
  2034.                         {
  2035.                             *RedDeviceGamma: 12600
  2036.                             *GreenDeviceGamma: 12000
  2037.                             *BlueDeviceGamma: 12300
  2038.                         }
  2039.                         *case: Red
  2040.                         {
  2041.                             *RedDeviceGamma: 12600
  2042.                             *GreenDeviceGamma: 12000
  2043.                             *BlueDeviceGamma: 12000
  2044.                         }
  2045.                         *case: Orange
  2046.                         {
  2047.                             *RedDeviceGamma: 12600
  2048.                             *GreenDeviceGamma: 12300
  2049.                             *BlueDeviceGamma: 12000
  2050.                         }
  2051.                         *case: YellowishOrange
  2052.                         {
  2053.                             *RedDeviceGamma: 12600
  2054.                             *GreenDeviceGamma: 12450
  2055.                             *BlueDeviceGamma: 12000
  2056.                         }
  2057.                     }
  2058.                 }
  2059.                 *case: Medium
  2060.                 {   *% +10% (+1200)
  2061.                     *switch: DeviceGammaAdjustmentHue
  2062.                     {
  2063.                         *case: Yellow
  2064.                         {
  2065.                             *RedDeviceGamma: 13200
  2066.                             *GreenDeviceGamma: 13200
  2067.                             *BlueDeviceGamma: 12000
  2068.                         }
  2069.                         *case: YellowishGreen
  2070.                         {
  2071.                             *RedDeviceGamma: 12600
  2072.                             *GreenDeviceGamma: 13200
  2073.                             *BlueDeviceGamma: 12000
  2074.                         }
  2075.                         *case: Green
  2076.                         {
  2077.                             *RedDeviceGamma: 12000
  2078.                             *GreenDeviceGamma: 13200
  2079.                             *BlueDeviceGamma: 12000
  2080.                         }
  2081.                         *case: BluishGreen
  2082.                         {
  2083.                             *RedDeviceGamma: 12000
  2084.                             *GreenDeviceGamma: 13200
  2085.                             *BlueDeviceGamma: 12600
  2086.                         }
  2087.                         *case: GreenishBlue
  2088.                         {
  2089.                             *RedDeviceGamma: 12000
  2090.                             *GreenDeviceGamma: 12600
  2091.                             *BlueDeviceGamma: 13200
  2092.                         }
  2093.                         *case: Blue
  2094.                         {
  2095.                             *RedDeviceGamma: 12000
  2096.                             *GreenDeviceGamma: 12000
  2097.                             *BlueDeviceGamma: 13200
  2098.                         }
  2099.                         *case: BluishPurple
  2100.                         {
  2101.                             *RedDeviceGamma: 12600
  2102.                             *GreenDeviceGamma: 12000
  2103.                             *BlueDeviceGamma: 13200
  2104.                         }
  2105.                         *case: Purple
  2106.                         {
  2107.                             *RedDeviceGamma: 13200
  2108.                             *GreenDeviceGamma: 12000
  2109.                             *BlueDeviceGamma: 13200
  2110.                         }
  2111.                         *case: ReddishPurple
  2112.                         {
  2113.                             *RedDeviceGamma: 13200
  2114.                             *GreenDeviceGamma: 12000
  2115.                             *BlueDeviceGamma: 12600
  2116.                         }
  2117.                         *case: Red
  2118.                         {
  2119.                             *RedDeviceGamma: 13200
  2120.                             *GreenDeviceGamma: 12000
  2121.                             *BlueDeviceGamma: 12000
  2122.                         }
  2123.                         *case: Orange
  2124.                         {
  2125.                             *RedDeviceGamma: 13200
  2126.                             *GreenDeviceGamma: 12600
  2127.                             *BlueDeviceGamma: 12000
  2128.                         }
  2129.                         *case: YellowishOrange
  2130.                         {
  2131.                             *RedDeviceGamma: 13200
  2132.                             *GreenDeviceGamma: 12900
  2133.                             *BlueDeviceGamma: 12000
  2134.                         }
  2135.                     }
  2136.                 }
  2137.                 *case: High
  2138.                 {   *% +20% (+2400)
  2139.                     *switch: DeviceGammaAdjustmentHue
  2140.                     {
  2141.                         *case: Yellow
  2142.                         {
  2143.                             *RedDeviceGamma: 14400
  2144.                             *GreenDeviceGamma: 14400
  2145.                             *BlueDeviceGamma: 12000
  2146.                         }
  2147.                         *case: YellowishGreen
  2148.                         {
  2149.                             *RedDeviceGamma: 13200
  2150.                             *GreenDeviceGamma: 14400
  2151.                             *BlueDeviceGamma: 12000
  2152.                         }
  2153.                         *case: Green
  2154.                         {
  2155.                             *RedDeviceGamma: 12000
  2156.                             *GreenDeviceGamma: 14400
  2157.                             *BlueDeviceGamma: 12000
  2158.                         }
  2159.                         *case: BluishGreen
  2160.                         {
  2161.                             *RedDeviceGamma: 12000
  2162.                             *GreenDeviceGamma: 14400
  2163.                             *BlueDeviceGamma: 13200
  2164.                         }
  2165.                         *case: GreenishBlue
  2166.                         {
  2167.                             *RedDeviceGamma: 12000
  2168.                             *GreenDeviceGamma: 13200
  2169.                             *BlueDeviceGamma: 14400
  2170.                         }
  2171.                         *case: Blue
  2172.                         {
  2173.                             *RedDeviceGamma: 12000
  2174.                             *GreenDeviceGamma: 12000
  2175.                             *BlueDeviceGamma: 14400
  2176.                         }
  2177.                         *case: BluishPurple
  2178.                         {
  2179.                             *RedDeviceGamma: 13200
  2180.                             *GreenDeviceGamma: 12000
  2181.                             *BlueDeviceGamma: 14400
  2182.                         }
  2183.                         *case: Purple
  2184.                         {
  2185.                             *RedDeviceGamma: 14400
  2186.                             *GreenDeviceGamma: 12000
  2187.                             *BlueDeviceGamma: 14400
  2188.                         }
  2189.                         *case: ReddishPurple
  2190.                         {
  2191.                             *RedDeviceGamma: 14400
  2192.                             *GreenDeviceGamma: 12000
  2193.                             *BlueDeviceGamma: 13200
  2194.                         }
  2195.                         *case: Red
  2196.                         {
  2197.                             *RedDeviceGamma: 14400
  2198.                             *GreenDeviceGamma: 12000
  2199.                             *BlueDeviceGamma: 12000
  2200.                         }
  2201.                         *case: Orange
  2202.                         {
  2203.                             *RedDeviceGamma: 14400
  2204.                             *GreenDeviceGamma: 13200
  2205.                             *BlueDeviceGamma: 12000
  2206.                         }
  2207.                         *case: YellowishOrange
  2208.                         {
  2209.                             *RedDeviceGamma: 14400
  2210.                             *GreenDeviceGamma: 13800
  2211.                             *BlueDeviceGamma: 12000
  2212.                         }
  2213.                     }
  2214.                 }
  2215.             }
  2216.         }
  2217.         *case: Light4
  2218.         {   *% 1.4
  2219.             *switch: DeviceGammaAdjustmentChroma
  2220.             {
  2221.                 *case: Flat
  2222.                 {
  2223.                      *RedDeviceGamma: 14000
  2224.                      *GreenDeviceGamma: 14000
  2225.                      *BlueDeviceGamma: 14000
  2226.                 }
  2227.                 *case: Low
  2228.                 {   *% +5% (+700)
  2229.                     *switch: DeviceGammaAdjustmentHue
  2230.                     {
  2231.                         *case: Yellow
  2232.                         {
  2233.                             *RedDeviceGamma: 14700
  2234.                             *GreenDeviceGamma: 14700
  2235.                             *BlueDeviceGamma: 14000
  2236.                         }
  2237.                         *case: YellowishGreen
  2238.                         {
  2239.                             *RedDeviceGamma: 14350
  2240.                             *GreenDeviceGamma: 14700
  2241.                             *BlueDeviceGamma: 14000
  2242.                         }
  2243.                         *case: Green
  2244.                         {
  2245.                             *RedDeviceGamma: 14000
  2246.                             *GreenDeviceGamma: 14700
  2247.                             *BlueDeviceGamma: 14000
  2248.                         }
  2249.                         *case: BluishGreen
  2250.                         {
  2251.                             *RedDeviceGamma: 14000
  2252.                             *GreenDeviceGamma: 14700
  2253.                             *BlueDeviceGamma: 14350
  2254.                         }
  2255.                         *case: GreenishBlue
  2256.                         {
  2257.                             *RedDeviceGamma: 14000
  2258.                             *GreenDeviceGamma: 14350
  2259.                             *BlueDeviceGamma: 14700
  2260.                         }
  2261.                         *case: Blue
  2262.                         {
  2263.                             *RedDeviceGamma: 14000
  2264.                             *GreenDeviceGamma: 14000
  2265.                             *BlueDeviceGamma: 14700
  2266.                         }
  2267.                         *case: BluishPurple
  2268.                         {
  2269.                             *RedDeviceGamma: 14350
  2270.                             *GreenDeviceGamma: 14000
  2271.                             *BlueDeviceGamma: 14700
  2272.                         }
  2273.                         *case: Purple
  2274.                         {
  2275.                             *RedDeviceGamma: 14700
  2276.                             *GreenDeviceGamma: 14000
  2277.                             *BlueDeviceGamma: 14700
  2278.                         }
  2279.                         *case: ReddishPurple
  2280.                         {
  2281.                             *RedDeviceGamma: 14700
  2282.                             *GreenDeviceGamma: 14000
  2283.                             *BlueDeviceGamma: 14350
  2284.                         }
  2285.                         *case: Red
  2286.                         {
  2287.                             *RedDeviceGamma: 14700
  2288.                             *GreenDeviceGamma: 14000
  2289.                             *BlueDeviceGamma: 14000
  2290.                         }
  2291.                         *case: Orange
  2292.                         {
  2293.                             *RedDeviceGamma: 14700
  2294.                             *GreenDeviceGamma: 14350
  2295.                             *BlueDeviceGamma: 14000
  2296.                         }
  2297.                         *case: YellowishOrange
  2298.                         {
  2299.                             *RedDeviceGamma: 14700
  2300.                             *GreenDeviceGamma: 14525
  2301.                             *BlueDeviceGamma: 14000
  2302.                         }
  2303.                     }
  2304.                 }
  2305.                 *case: Medium
  2306.                 {   *% +10% (+1400)
  2307.                     *switch: DeviceGammaAdjustmentHue
  2308.                     {
  2309.                         *case: Yellow
  2310.                         {
  2311.                             *RedDeviceGamma: 15400
  2312.                             *GreenDeviceGamma: 15400
  2313.                             *BlueDeviceGamma: 14000
  2314.                         }
  2315.                         *case: YellowishGreen
  2316.                         {
  2317.                             *RedDeviceGamma: 15400
  2318.                             *GreenDeviceGamma: 14700
  2319.                             *BlueDeviceGamma: 14000
  2320.                         }
  2321.                         *case: Green
  2322.                         {
  2323.                             *RedDeviceGamma: 14000
  2324.                             *GreenDeviceGamma: 15400
  2325.                             *BlueDeviceGamma: 14000
  2326.                         }
  2327.                         *case: BluishGreen
  2328.                         {
  2329.                             *RedDeviceGamma: 14000
  2330.                             *GreenDeviceGamma: 15400
  2331.                             *BlueDeviceGamma: 14700
  2332.                         }
  2333.                         *case: GreenishBlue
  2334.                         {
  2335.                             *RedDeviceGamma: 14000
  2336.                             *GreenDeviceGamma: 14700
  2337.                             *BlueDeviceGamma: 15400
  2338.                         }
  2339.                         *case: Blue
  2340.                         {
  2341.                             *RedDeviceGamma: 14000
  2342.                             *GreenDeviceGamma: 14000
  2343.                             *BlueDeviceGamma: 15400
  2344.                         }
  2345.                         *case: BluishPurple
  2346.                         {
  2347.                             *RedDeviceGamma: 14700
  2348.                             *GreenDeviceGamma: 14000
  2349.                             *BlueDeviceGamma: 15400
  2350.                         }
  2351.                         *case: Purple
  2352.                         {
  2353.                             *RedDeviceGamma: 15400
  2354.                             *GreenDeviceGamma: 14000
  2355.                             *BlueDeviceGamma: 15400
  2356.                         }
  2357.                         *case: ReddishPurple
  2358.                         {
  2359.                             *RedDeviceGamma: 15400
  2360.                             *GreenDeviceGamma: 14000
  2361.                             *BlueDeviceGamma: 14700
  2362.                         }
  2363.                         *case: Red
  2364.                         {
  2365.                             *RedDeviceGamma: 15400
  2366.                             *GreenDeviceGamma: 14000
  2367.                             *BlueDeviceGamma: 14000
  2368.                         }
  2369.                         *case: Orange
  2370.                         {
  2371.                             *RedDeviceGamma: 15400
  2372.                             *GreenDeviceGamma: 14700
  2373.                             *BlueDeviceGamma: 14000
  2374.                         }
  2375.                         *case: YellowishOrange
  2376.                         {
  2377.                             *RedDeviceGamma: 15400
  2378.                             *GreenDeviceGamma: 15050
  2379.                             *BlueDeviceGamma: 14000
  2380.                         }
  2381.                     }
  2382.                 }
  2383.                 *case: High
  2384.                 {   *% +20% (+2800)
  2385.                     *switch: DeviceGammaAdjustmentHue
  2386.                     {
  2387.                         *case: Yellow
  2388.                         {
  2389.                             *RedDeviceGamma: 16800
  2390.                             *GreenDeviceGamma: 16800
  2391.                             *BlueDeviceGamma: 14000
  2392.                         }
  2393.                         *case: YellowishGreen
  2394.                         {
  2395.                             *RedDeviceGamma: 15400
  2396.                             *GreenDeviceGamma: 16800
  2397.                             *BlueDeviceGamma: 14000
  2398.                         }
  2399.                         *case: Green
  2400.                         {
  2401.                             *RedDeviceGamma: 14000
  2402.                             *GreenDeviceGamma: 16800
  2403.                             *BlueDeviceGamma: 14000
  2404.                         }
  2405.                         *case: BluishGreen
  2406.                         {
  2407.                             *RedDeviceGamma: 14000
  2408.                             *GreenDeviceGamma: 16800
  2409.                             *BlueDeviceGamma: 15400
  2410.                         }
  2411.                         *case: GreenishBlue
  2412.                         {
  2413.                             *RedDeviceGamma: 14000
  2414.                             *GreenDeviceGamma: 15400
  2415.                             *BlueDeviceGamma: 16800
  2416.                         }
  2417.                         *case: Blue
  2418.                         {
  2419.                             *RedDeviceGamma: 14000
  2420.                             *GreenDeviceGamma: 14000
  2421.                             *BlueDeviceGamma: 16800
  2422.                         }
  2423.                         *case: BluishPurple
  2424.                         {
  2425.                             *RedDeviceGamma: 15400
  2426.                             *GreenDeviceGamma: 14000
  2427.                             *BlueDeviceGamma: 16800
  2428.                         }
  2429.                         *case: Purple
  2430.                         {
  2431.                             *RedDeviceGamma: 16800
  2432.                             *GreenDeviceGamma: 14000
  2433.                             *BlueDeviceGamma: 16800
  2434.                         }
  2435.                         *case: ReddishPurple
  2436.                         {
  2437.                             *RedDeviceGamma: 16800
  2438.                             *GreenDeviceGamma: 14000
  2439.                             *BlueDeviceGamma: 15400
  2440.                         }
  2441.                         *case: Red
  2442.                         {
  2443.                             *RedDeviceGamma: 16800
  2444.                             *GreenDeviceGamma: 14000
  2445.                             *BlueDeviceGamma: 14000
  2446.                         }
  2447.                         *case: Orange
  2448.                         {
  2449.                             *RedDeviceGamma: 16800
  2450.                             *GreenDeviceGamma: 15400
  2451.                             *BlueDeviceGamma: 14000
  2452.                         }
  2453.                         *case: YellowishOrange
  2454.                         {
  2455.                             *RedDeviceGamma: 16800
  2456.                             *GreenDeviceGamma: 16100
  2457.                             *BlueDeviceGamma: 14000
  2458.                         }
  2459.                     }
  2460.                 }
  2461.             }
  2462.         }
  2463.     }
  2464. }
  2465. *BlockMacro: BM_RECTFILL
  2466. {
  2467.     *Command: CmdSetRectWidth { *Cmd: "" }
  2468.     *Command: CmdSetRectHeight { *Cmd: "" }
  2469.     *Command: CmdRectGrayFill
  2470.     {
  2471.         *Cmd: "<1D>0;0;"%d{GrayPercentage}"spE<1D>1owE<1D>1tsE<1D>1dmG"
  2472. +             "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  2473. +                   %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  2474. +             "<1D>0;0;100spE<1D>0owE<1D>0tsE"
  2475.     }
  2476.     *Command: CmdRectWhiteFill
  2477.     {
  2478.         *Cmd: "<1D>0;0;0spE<1D>1owE<1D>1tsE<1D>1dmG"
  2479. +             "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  2480. +                   %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  2481. +             "<1D>0;0;100spE<1D>0owE<1D>0tsE"
  2482.     }
  2483.     *Command: CmdRectBlackFill
  2484.     {
  2485.         *Cmd: "<1D>0;0;100spE<1D>1owE<1D>1tsE<1D>1dmG"
  2486. +             "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  2487. +                   %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  2488. +             "<1D>0owE<1D>0tsE"
  2489.     }
  2490. }
  2491. *BlockMacro: BM_RECTFILL_C
  2492. {
  2493.     *Command: CmdSetRectWidth { *Cmd: "" }
  2494.     *Command: CmdSetRectHeight { *Cmd: "" }
  2495.     *Command: CmdRectGrayFill
  2496.     {
  2497.         *Cmd: "<1D>1;2;3;"%d{(((100 - GrayPercentage) * 255) / 100)}";"
  2498. +                   %d{(((100 - GrayPercentage) * 255) / 100)}";"
  2499. +                   %d{(((100 - GrayPercentage) * 255) / 100)}"fpE"
  2500. +             "<1D>3;2;1cpE<1D>2;240wfE<1D>1dmG"
  2501. +             "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  2502. +                   %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  2503. +             "<1D>1;2;3;0;0;0fpE<1D>2;160wfE"
  2504.     }
  2505.     *Command: CmdRectWhiteFill
  2506.     {
  2507.         *Cmd: "<1D>1;2;3;255;255;255fpE<1D>3;2;1cpE<1D>2;240wfE<1D>1dmG"
  2508. +             "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  2509. +                   %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  2510. +             "<1D>1;2;3;0;0;0fpE<1D>2;160wfE"
  2511.     }
  2512.     *Command: CmdRectBlackFill
  2513.     {
  2514.         *Cmd: "<1D>1;2;3;0;0;0fpE<1D>3;2;1cpE<1D>2;240wfE<1D>1dmG"
  2515. +             "<1D>"%d{(DestX / 2)}";"%d{(DestY / 2)}";"
  2516. +                   %d{((DestX + (RectXSize - 2)) / 2)}";"%d{((DestY + (RectYSize - 2)) / 2)}";0rG"
  2517. +             "<1D>2;160wfE"
  2518.     }
  2519. }
  2520. *Macros: CmdStrings
  2521. {
  2522.     CMD_STARTDOC_INI   : "<1B01>@EJL <0A>@EJL EN LA=ESC/PAGE<0A>"
  2523. +                        "<1B01>@EJL <0A>@EJL SE LA=ESC/PAGE<0A>"
  2524. +                        "@EJL SET EC=ON PU=1 ZO=OFF RS=FN<0A>"
  2525.     CMD_STARTDOC_FIN   : "@EJL EN LA=ESC/PAGE<0A>"
  2526. +                        "<1D>rhE<1D>0;0.12muE<1D>14isE<1D>2iaF<1D>24ifF<1D>1ipP"
  2527.     CMD_STARTDOC_C_INI : "<1B01>@EJL <0A>@EJL SE LA=ESC/PAGE<0A>"
  2528. +                        "@EJL SET EC=ON PU=1 ZO=OFF<0A>"
  2529.     CMD_STARTDOC_C_FIN : "@EJL EN LA=ESC/PAGE-COLOR<0A>"
  2530. +                        "<1D>rhE<1D>0;0.12muE<1D>2;160wfE<1D>5;136wfE"
  2531.     CMD_STARTDOC_C_FIN_QK : "@EJL SET RS=QK<0A>@EJL EN LA=ESC/PAGE-COLOR<0A>"
  2532. +                        "<1D>rhE<1D>0;0.12muE"
  2533.     CMD_STARTDOC_C_FIN_FN : "@EJL SET RS=FN<0A>@EJL EN LA=ESC/PAGE-COLOR<0A>"
  2534. +                        "<1D>rhE<1D>0;0.12muE"
  2535.     CMD_EJL_SET        : "@EJL SET"
  2536.     CMD_EJL_FACEDOWN   : " OU=FD"
  2537.     CMD_EJL_FACEUP     : " OU=FU"
  2538.     CMD_EJL_NORMAL     : " PK=NM"
  2539.     CMD_EJL_THICK      : " PK=TH"
  2540.     CMD_EJL_THICK_N    : " PK=TN"
  2541.     CMD_EJL_OHP        : " PK=TR"
  2542.     CMD_EJL_END        : "<0A>"
  2543. }
  2544.  
  2545. *% BlockMacros for PaperSize feature:US
  2546. *BlockMacro: BM_PS_A3W
  2547. {
  2548.     *rcNameID: =RC_STR_A3W
  2549.     *PageDimensions: PAIR(15496, 21400)
  2550.     *switch: Orientation
  2551.     {
  2552.         *case: PORTRAIT
  2553.         {
  2554.             *PrintableArea: PAIR(15016, 20920)
  2555.             *PrintableOrigin: PAIR(240, 240)
  2556.             *CursorOrigin: PAIR(240, 240)
  2557.             *Command: CmdSelect
  2558.             {
  2559.                 *Order: DOC_SETUP.40
  2560.                 *Cmd: "<1D>75psE"
  2561.             }
  2562.         }
  2563.         *case: LANDSCAPE_CC90
  2564.         {
  2565.             *PrintableArea: PAIR(15016, 20920)
  2566.             *PrintableOrigin: PAIR(240, 240)
  2567.             *CursorOrigin: PAIR(240, 21160)
  2568.             *Command: CmdSelect
  2569.             {
  2570.                 *Order: DOC_SETUP.40
  2571.                 *Cmd: "<1D>75psE<1D>1poE"
  2572.             }
  2573.         }
  2574.     }
  2575. }
  2576. *BlockMacro: BM_PS_IB5
  2577. {
  2578.     *rcNameID: =RC_STR_IB5
  2579.     *PageDimensions: PAIR(8312, 11808)
  2580.     *switch: Orientation
  2581.     {
  2582.         *case: PORTRAIT
  2583.         {
  2584.             *PrintableArea: PAIR(7832, 11328)
  2585.             *PrintableOrigin: PAIR(240, 240)
  2586.             *CursorOrigin: PAIR(240, 240)
  2587.             *Command: CmdSelect
  2588.             {
  2589.                 *Order: DOC_SETUP.40
  2590.                 *Cmd: "<1D>99psE"
  2591.             }
  2592.         }
  2593.         *case: LANDSCAPE_CC90
  2594.         {
  2595.             *PrintableArea: PAIR(7832, 11328)
  2596.             *PrintableOrigin: PAIR(240, 240)
  2597.             *CursorOrigin: PAIR(240, 11568)
  2598.             *Command: CmdSelect
  2599.             {
  2600.                 *Order: DOC_SETUP.40
  2601.                 *Cmd: "<1D>99psE<1D>1poE"
  2602.             }
  2603.         }
  2604.     }
  2605. }
  2606. *BlockMacro: BM_PS_A3P
  2607. {
  2608.     *rcNameID: =RC_STR_A3P
  2609.     *PageDimensions: PAIR(15540, 22816)
  2610.     *switch: Orientation
  2611.     {
  2612.         *case: PORTRAIT
  2613.         {
  2614.             *PrintableArea: PAIR(15060, 22336)
  2615.             *PrintableOrigin: PAIR(240, 240)
  2616.             *CursorOrigin: PAIR(240, 240)
  2617.             *Command: CmdSelect
  2618.             {
  2619.                 *Order: DOC_SETUP.40
  2620.                 *Cmd: "<1D>72psE"
  2621.             }
  2622.         }
  2623.         *case: LANDSCAPE_CC90
  2624.         {
  2625.             *PrintableArea: PAIR(15060, 22336)
  2626.             *PrintableOrigin: PAIR(240, 240)
  2627.             *CursorOrigin: PAIR(240, 22576)
  2628.             *Command: CmdSelect
  2629.             {
  2630.                 *Order: DOC_SETUP.40
  2631.                 *Cmd: "<1D>72psE<1D>1poE"
  2632.             }
  2633.         }
  2634.     }
  2635. }
  2636.  
  2637. *% BlockMacros for other features
  2638. *BlockMacro: BM_DEVGAMMAADJ_BRIGHTNESS_OPTIONS
  2639. {
  2640.     *rcNameID: =RC_STR_BRGHTNSS
  2641.     *FeatureType: DOC_PROPERTY
  2642.     *DefaultOption: Light3
  2643.     *Option: DriverDefault
  2644.     {
  2645.         *rcNameID: =RC_STR_DRVDEF
  2646.         *Command: CmdSelect
  2647.         {
  2648.             *Order: DOC_SETUP.997
  2649.             *Cmd: ""
  2650.         }
  2651.     }
  2652.     *Option: Dark2
  2653.     {
  2654.         *rcNameID: =RC_STR_DARK2
  2655.         *Command: CmdSelect
  2656.         {
  2657.             *Order: DOC_SETUP.997
  2658.             *Cmd: ""
  2659.         }
  2660.     }
  2661.     *Option: Dark1
  2662.     {
  2663.         *rcNameID: =RC_STR_DARK1
  2664.         *Command: CmdSelect
  2665.         {
  2666.             *Order: DOC_SETUP.997
  2667.             *Cmd: ""
  2668.         }
  2669.     }
  2670.     *Option: Normal
  2671.     {
  2672.         *rcNameID: =RC_STR_NORMAL
  2673.         *Command: CmdSelect
  2674.         {
  2675.             *Order: DOC_SETUP.997
  2676.             *Cmd: ""
  2677.         }
  2678.     }
  2679.     *Option: Light1
  2680.     {
  2681.         *rcNameID: =RC_STR_LGHT1
  2682.         *Command: CmdSelect
  2683.         {
  2684.             *Order: DOC_SETUP.997
  2685.             *Cmd: ""
  2686.         }
  2687.     }
  2688.     *Option: Light2
  2689.     {
  2690.         *rcNameID: =RC_STR_LGHT2
  2691.         *Command: CmdSelect
  2692.         {
  2693.             *Order: DOC_SETUP.997
  2694.             *Cmd: ""
  2695.         }
  2696.     }
  2697.     *Option: Light3
  2698.     {
  2699.         *rcNameID: =RC_STR_LGHT3
  2700.         *Command: CmdSelect
  2701.         {
  2702.             *Order: DOC_SETUP.997
  2703.             *Cmd: ""
  2704.         }
  2705.     }
  2706.     *Option: Light4
  2707.     {
  2708.         *rcNameID: =RC_STR_LGHT4
  2709.         *Command: CmdSelect
  2710.         {
  2711.             *Order: DOC_SETUP.997
  2712.             *Cmd: ""
  2713.         }
  2714.     }
  2715. }
  2716. *BlockMacro: BM_DEVGAMMAADJ_HUE_OPTIONS
  2717. {
  2718.     *rcNameID: =RC_STR_HUE
  2719.     *FeatureType: DOC_PROPERTY
  2720.     *DefaultOption: Red
  2721.     *Option: Yellow
  2722.     {
  2723.         *rcNameID: =RC_STR_YLW
  2724.         *Command: CmdSelect
  2725.         {
  2726.             *Order: DOC_SETUP.996
  2727.             *Cmd: ""
  2728.         }
  2729.     }
  2730.     *Option: YellowishGreen
  2731.     {
  2732.         *rcNameID: =RC_STR_YLWGRN
  2733.         *Command: CmdSelect
  2734.         {
  2735.             *Order: DOC_SETUP.996
  2736.             *Cmd: ""
  2737.         }
  2738.     }
  2739.     *Option: Green
  2740.     {
  2741.         *rcNameID: =RC_STR_GRN
  2742.         *Command: CmdSelect
  2743.         {
  2744.             *Order: DOC_SETUP.996
  2745.             *Cmd: ""
  2746.         }
  2747.     }
  2748.     *Option: BluishGreen
  2749.     {
  2750.         *rcNameID: =RC_STR_BLUGRN
  2751.         *Command: CmdSelect
  2752.         {
  2753.             *Order: DOC_SETUP.996
  2754.             *Cmd: ""
  2755.         }
  2756.     }
  2757.     *Option: GreenishBlue
  2758.     {
  2759.         *rcNameID: =RC_STR_GRNBLU
  2760.         *Command: CmdSelect
  2761.         {
  2762.             *Order: DOC_SETUP.996
  2763.             *Cmd: ""
  2764.         }
  2765.     }
  2766.     *Option: Blue
  2767.     {
  2768.         *rcNameID: =RC_STR_BLU
  2769.         *Command: CmdSelect
  2770.         {
  2771.             *Order: DOC_SETUP.996
  2772.             *Cmd: ""
  2773.         }
  2774.     }
  2775.     *Option: BluishPurple
  2776.     {
  2777.         *rcNameID: =RC_STR_BLUPPL
  2778.         *Command: CmdSelect
  2779.         {
  2780.             *Order: DOC_SETUP.996
  2781.             *Cmd: ""
  2782.         }
  2783.     }
  2784.     *Option: Purple
  2785.     {
  2786.         *rcNameID: =RC_STR_PPL
  2787.         *Command: CmdSelect
  2788.         {
  2789.             *Order: DOC_SETUP.996
  2790.             *Cmd: ""
  2791.         }
  2792.     }
  2793.     *Option: ReddishPurple
  2794.     {
  2795.         *rcNameID: =RC_STR_REDPPL
  2796.         *Command: CmdSelect
  2797.         {
  2798.             *Order: DOC_SETUP.996
  2799.             *Cmd: ""
  2800.         }
  2801.     }
  2802.     *Option: Red
  2803.     {
  2804.         *rcNameID: =RC_STR_RED
  2805.         *Command: CmdSelect
  2806.         {
  2807.             *Order: DOC_SETUP.996
  2808.             *Cmd: ""
  2809.         }
  2810.     }
  2811.     *Option: Orange
  2812.     {
  2813.         *rcNameID: =RC_STR_ORG
  2814.         *Command: CmdSelect
  2815.         {
  2816.             *Order: DOC_SETUP.996
  2817.             *Cmd: ""
  2818.         }
  2819.     }
  2820.     *Option: YellowishOrange
  2821.     {
  2822.         *rcNameID: =RC_STR_YLWORG
  2823.         *Command: CmdSelect
  2824.         {
  2825.             *Order: DOC_SETUP.996
  2826.             *Cmd: ""
  2827.         }
  2828.     }
  2829. }
  2830. *BlockMacro: BM_DEVGAMMAADJ_CHROMA_OPTIONS
  2831. {
  2832.     *rcNameID: =RC_STR_CHROMA
  2833.     *FeatureType: DOC_PROPERTY
  2834.     *DefaultOption: High
  2835.     *Option: Flat
  2836.     {
  2837.         *rcNameID: =RC_STR_FLAT
  2838.         *Command: CmdSelect
  2839.         {
  2840.             *Order: DOC_SETUP.996
  2841.             *Cmd: ""
  2842.         }
  2843.     }
  2844.     *Option: Low
  2845.     {
  2846.         *rcNameID: =RC_STR_LOW
  2847.         *Command: CmdSelect
  2848.         {
  2849.             *Order: DOC_SETUP.996
  2850.             *Cmd: ""
  2851.         }
  2852.     }
  2853.     *Option: Medium
  2854.     {
  2855.         *rcNameID: =RC_STR_MED
  2856.         *Command: CmdSelect
  2857.         {
  2858.             *Order: DOC_SETUP.996
  2859.             *Cmd: ""
  2860.         }
  2861.     }
  2862.     *Option: High
  2863.     {
  2864.         *rcNameID: =RC_STR_HIGH
  2865.         *Command: CmdSelect
  2866.         {
  2867.             *Order: DOC_SETUP.996
  2868.             *Cmd: ""
  2869.         }
  2870.     }
  2871. }
  2872. *CodePage: 1252
  2873. *ModelName: "Epson EPL-C8000"
  2874. *MasterUnits: PAIR(1200, 1200)
  2875. *ResourceDLL: "EPAGCRES.DLL"
  2876. *PrinterType: PAGE
  2877. *MaxCopies: 255
  2878. *PrintRate: 4
  2879. *PrintRateUnit: PPM
  2880. *FontCartSlots: 1
  2881. *rcInstalledOptionNameID: =RC_STR_OPTION_ON
  2882. *rcNotInstalledOptionNameID: =RC_STR_OPTION_OFF
  2883.  
  2884. *Feature: Orientation
  2885. {
  2886.     *rcNameID: =ORIENTATION_DISPLAY
  2887.     *DefaultOption: PORTRAIT
  2888.     *Option: PORTRAIT
  2889.     {
  2890.         *rcNameID: =PORTRAIT_DISPLAY
  2891.         *Command: CmdSelect
  2892.         {
  2893.             *Order: DOC_SETUP.30
  2894.             *Cmd: "<1D>0poE"
  2895.         }
  2896.     }
  2897.     *Option: LANDSCAPE_CC90
  2898.     {
  2899.         *rcNameID: =LANDSCAPE_DISPLAY
  2900.         *Command: CmdSelect
  2901.         {
  2902.             *Order: DOC_SETUP.30
  2903.             *Cmd: "<1D>1poE"
  2904.         }
  2905.     }
  2906. }
  2907.  
  2908. *Feature: InputBin
  2909. {
  2910.     *rcNameID: =PAPER_SOURCE_DISPLAY
  2911.     *DefaultOption: AUTOSEL
  2912.     *Option: AUTOSEL
  2913.     {
  2914.         *rcNameID: =RC_STR_AUTOSEL
  2915.         *Command: CmdSelect
  2916.         {
  2917.             *Order: DOC_SETUP.50
  2918.             *Cmd: "<1D>0;0iuE"
  2919.         }
  2920.     }
  2921.     *Option: CST1
  2922.     {
  2923.         *rcNameID: =RC_STR_CST1
  2924.         *Command: CmdSelect
  2925.         {
  2926.             *Order: DOC_SETUP.50
  2927.             *Cmd: "<1D>2;1iuE"
  2928.         }
  2929.     }
  2930.     *Option: CST2
  2931.     {
  2932.         *rcNameID: =RC_STR_CST2
  2933.         *Installable?: TRUE
  2934.         *rcInstallableFeatureNameID: =RC_STR_CST2
  2935.         *Command: CmdSelect
  2936.         {
  2937.             *Order: DOC_SETUP.50
  2938.             *Cmd: "<1D>3;1iuE"
  2939.         }
  2940.         *% Constraints: LIST(PaperSize.A3)
  2941.     }
  2942.     *Option: CST3
  2943.     {
  2944.         *rcNameID: =RC_STR_CST3
  2945.         *Installable?: TRUE
  2946.         *rcInstallableFeatureNameID: =RC_STR_CST3
  2947.         *Command: CmdSelect
  2948.         {
  2949.             *Order: DOC_SETUP.50
  2950.             *Cmd: "<1D>4;1iuE"
  2951.         }
  2952.     }
  2953.     *Option: CST4
  2954.     {
  2955.         *rcNameID: =RC_STR_CST4
  2956.         *Installable?: TRUE
  2957.         *rcInstallableFeatureNameID: =RC_STR_CST4
  2958.         *Command: CmdSelect
  2959.         {
  2960.             *Order: DOC_SETUP.50
  2961.             *Cmd: "<1D>5;1iuE"
  2962.         }
  2963.     }
  2964.     *Option: TRAY
  2965.     {
  2966.         *rcNameID: =RC_STR_TRAY
  2967.         *Command: CmdSelect
  2968.         {
  2969.             *Order: DOC_SETUP.50
  2970.             *Cmd: "<1D>1;1iuE"
  2971.         }
  2972.     }
  2973. }
  2974.  
  2975. *Feature: OutputBin
  2976. {
  2977.     *rcNameID: =OUTPUTBIN_DISPLAY
  2978.     *DefaultOption: FACEDOWN
  2979.     *Option: FACEDOWN
  2980.     {
  2981.         *rcNameID: =RC_STR_FACEDOWN
  2982.         *Constraints: LIST(PaperSize.A5, PaperSize.HLT, PaperSize.ENV_MONARCH,
  2983. +                          PaperSize.C10, PaperSize.ENV_10, PaperSize.ENV_DL,
  2984. +                          PaperSize.ENV_C5, PaperSize.ENV_C6, PaperSize.IB5,
  2985. +                          MediaType.TRANSPARENCY)
  2986.         *Command: CmdSelect
  2987.         {
  2988.             *Order: DOC_SETUP.2
  2989.             *Cmd: =CMD_EJL_FACEDOWN
  2990.         }
  2991.     }
  2992.     *Option: FACEUP
  2993.     {
  2994.         *rcNameID: =RC_STR_FACEUP
  2995.         *OutputOrderReversed?: TRUE
  2996.         *Command: CmdSelect
  2997.         {
  2998.             *Order: DOC_SETUP.2
  2999.             *Cmd: =CMD_EJL_FACEUP
  3000.         }
  3001.     }
  3002. }
  3003.  
  3004. *Feature: MediaType
  3005. {
  3006.     *rcNameID: =MEDIA_TYPE_DISPLAY
  3007.     *DefaultOption: STANDARD
  3008.     *Option: STANDARD
  3009.     {
  3010.         *rcNameID: =PLAIN_PAPER_DISPLAY
  3011.         *Command: CmdSelect
  3012.         {
  3013.             *Order: DOC_SETUP.3
  3014.             *Cmd: =CMD_EJL_NORMAL
  3015.         }
  3016.     }
  3017.     *Option: TRANSPARENCY
  3018.     {
  3019.         *rcNameID: =TRANSPARENCY_DISPLAY
  3020.         *Command: CmdSelect
  3021.         {
  3022.             *Order: DOC_SETUP.3
  3023.             *Cmd: =CMD_EJL_OHP
  3024.         }
  3025.     }
  3026.     *Option: THICK
  3027.     {
  3028.         *rcNameID: =RC_STR_THICK
  3029.         *Command: CmdSelect
  3030.         {
  3031.             *Order: DOC_SETUP.3
  3032.             *Cmd: =CMD_EJL_THICK
  3033.         }
  3034.     }
  3035. }
  3036.  
  3037. *Feature: PrinterMode
  3038. {
  3039.     *rcNameID: =RC_STR_PRNTRMODE
  3040.     *FeatureType: DOC_PROPERTY
  3041.     *DefaultOption: CPGI
  3042.     *Option: CPGI
  3043.     {
  3044.         *rcNameID: =RC_STR_QUALITY
  3045.         *switch: ColorMode
  3046.         {
  3047.             *case: Mono
  3048.             {
  3049.                 *Command: CmdSelect
  3050.                 {
  3051.                     *Order: DOC_SETUP.15
  3052.                     *Cmd: ""
  3053.                 }
  3054.             }
  3055.             *case: 24bpp
  3056.             {
  3057.                 *Command: CmdSelect
  3058.                 {   *% CPGI
  3059.                     *Order: DOC_SETUP.15
  3060.                     *Cmd: "<1D>0pdnO<1D>0pddO<1D>2;160wfE<1D>5;136wfE<1D>0;0mmE<1D>2csE"
  3061.                 }
  3062.             }
  3063.         }
  3064.     }
  3065.     *Option: PGI
  3066.     {
  3067.         *rcNameID: =RC_STR_SPEED
  3068.         *switch: ColorMode
  3069.         {
  3070.             *case: Mono
  3071.             {
  3072.                 *Command: CmdSelect
  3073.                 {
  3074.                     *Order: DOC_SETUP.15
  3075.                     *Cmd: ""
  3076.                 }
  3077.             }
  3078.             *case: 24bpp
  3079.             {
  3080.                 *Command: CmdSelect
  3081.                 {   *% Speed
  3082.                     *Order: DOC_SETUP.15
  3083.                     *Cmd: "<1D>0pdnO<1D>1pddO<1D>2;160wfE<1D>5;136wfE<1D>0;0mmE<1D>2csE"
  3084.                 }
  3085.             }
  3086.         }
  3087.     }
  3088. }
  3089.  
  3090. *Feature: ColorAdjustment
  3091. {
  3092.     *rcNameID: =RC_STR_CLRADJUST
  3093.     *FeatureType: DOC_PROPERTY
  3094.     *DefaultOption: Natural
  3095.     *Option: None
  3096.     {
  3097.         *rcNameID: =RC_STR_NONE
  3098.         *switch: ColorMode
  3099.         {
  3100.             *case: Mono
  3101.             {
  3102.                 *Command: CmdSelect
  3103.                 {
  3104.                     *Order: DOC_SETUP.16
  3105.                     *Cmd: ""
  3106.                 }
  3107.             }
  3108.             *case: 24bpp
  3109.             {
  3110.                 *Command: CmdSelect
  3111.                 {   *% Off
  3112.                     *Order: DOC_SETUP.16
  3113.                     *Cmd: "<1D>0;1;1cmmE<1D>0;1raE<1D>0;2;1ccmE<1D>9;2;1ccmE"
  3114.                 }
  3115.             }
  3116.         }
  3117.     }
  3118.     *Option: Natural
  3119.     {
  3120.         *rcNameID: =RC_STR_NATURAL
  3121.         *switch: ColorMode
  3122.         {
  3123.             *case: Mono
  3124.             {
  3125.                 *Command: CmdSelect
  3126.                 {
  3127.                     *Order: DOC_SETUP.16
  3128.                     *Cmd: ""
  3129.                 }
  3130.             }
  3131.             *case: 24bpp
  3132.             {
  3133.                 *Command: CmdSelect
  3134.                 {   *% Natural/Photo
  3135.                     *Order: DOC_SETUP.16
  3136.                     *Cmd: "<1D>0;1;1cmmE<1D>0;2raE<1D>0;2;4ccmE<1D>9;2;4ccmE<1D>1cmmE"
  3137.                 }
  3138.             }
  3139.         }
  3140.     }
  3141.     *Option: Vivid
  3142.     {
  3143.         *rcNameID: =RC_STR_VIVID
  3144.         *switch: ColorMode
  3145.         {
  3146.             *case: Mono
  3147.             {
  3148.                 *Command: CmdSelect
  3149.                 {
  3150.                     *Order: DOC_SETUP.16
  3151.                     *Cmd: ""
  3152.                 }
  3153.             }
  3154.             *case: 24bpp
  3155.             {
  3156.                 *Command: CmdSelect
  3157.                 {   *% Contrast/Graph
  3158.                     *Order: DOC_SETUP.16
  3159.                     *Cmd: "<1D>0;1;1cmmE<1D>0;1raE<1D>0;2;3ccmE<1D>9;2;3ccmE<1D>1cmmE"
  3160.                 }
  3161.             }
  3162.         }
  3163.     }
  3164. }
  3165.  
  3166. *Feature: DeviceGammaAdjustmentBrightness
  3167. {
  3168.     *InsertBlock: =BM_DEVGAMMAADJ_BRIGHTNESS_OPTIONS
  3169. }
  3170. *Feature: DeviceGammaAdjustmentHue
  3171. {
  3172.     *InsertBlock: =BM_DEVGAMMAADJ_HUE_OPTIONS
  3173. }
  3174. *Feature: DeviceGammaAdjustmentChroma
  3175. {
  3176.     *InsertBlock: =BM_DEVGAMMAADJ_CHROMA_OPTIONS
  3177. }
  3178.  
  3179. *Feature: StartDocFin
  3180. {
  3181.     *rcNameID: =RC_STR_NONE  *% Dummy
  3182.     *ConcealFromUI?: TRUE
  3183.     *DefaultOption: Option1
  3184.     *Option: Option1
  3185.     {
  3186.         *rcNameID: =RC_STR_NONE  *% Dummy
  3187.         *switch: ColorMode
  3188.         {
  3189.             *case: Mono
  3190.             {
  3191.                 *Command: CmdSelect
  3192.                 {
  3193.                     *Order: DOC_SETUP.10
  3194.                     *Cmd: =CMD_EJL_END =CMD_STARTDOC_FIN
  3195.                 }
  3196.             }
  3197.             *case: 24bpp
  3198.             {
  3199.                 *switch: Resolution
  3200.                 {
  3201.                     *case: 300dpi
  3202.                     {
  3203.                         *Command: CmdSelect
  3204.                         {
  3205.                             *Order: DOC_SETUP.10
  3206.                             *Cmd: =CMD_EJL_END =CMD_STARTDOC_C_FIN_QK
  3207.                         }
  3208.                      }
  3209.                     *case: 600dpi
  3210.                     {
  3211.                         *Command: CmdSelect
  3212.                         {
  3213.                             *Order: DOC_SETUP.10
  3214.                             *Cmd: =CMD_EJL_END =CMD_STARTDOC_C_FIN_FN
  3215.                         }
  3216.                      }
  3217.                 }
  3218.             }
  3219.         }
  3220.     }
  3221. }
  3222.  
  3223. *Feature: ColorMode
  3224. {
  3225.     *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  3226.     *DefaultOption: 24bpp
  3227.     *Option: Mono
  3228.     {
  3229.         *rcNameID: =MONO_DISPLAY
  3230.         *DevNumOfPlanes: 1
  3231.         *DevBPP: 1
  3232.         *Color? : FALSE
  3233.         *DisabledFeatures: LIST(PrinterMode,ColorAdjustment)
  3234.         *Command: CmdSelect
  3235.         {
  3236.             *Order: DOC_SETUP.11
  3237.             *Cmd: ""
  3238.         }
  3239.     }
  3240.     *Option: 24bpp
  3241.     {
  3242.         *rcNameID: =24BPP_DISPLAY
  3243.         *DevNumOfPlanes: 1
  3244.         *DevBPP: 24
  3245.         *DrvBPP: 24
  3246.         *PaletteSize: 16
  3247.         *PaletteProgrammable?: TRUE
  3248.         *Command: CmdDefinePaletteEntry
  3249.         {
  3250.             *CallbackID: =DEFINE_PALETTE_ENTRY
  3251.             *Params: LIST(PaletteIndexToProgram,RedValue,GreenValue,BlueValue)
  3252.         }
  3253.         *Command: CmdSelectPaletteEntry
  3254.         {
  3255.             *CallbackID: =SELECT_PALETTE_ENTRY
  3256.             *Params: LIST(CurrentPaletteIndex)
  3257.         }
  3258.         *Command: CmdSetSrcBmpWidth
  3259.         {
  3260.             *CallbackID: =SET_SRC_BMP_WIDTH
  3261.             *Params: LIST(RasterDataWidthInBytes)
  3262.         }
  3263.         *Command: CmdSetSrcBmpHeight
  3264.         {
  3265.             *CallbackID: =SET_SRC_BMP_HEIGHT
  3266.             *Params: LIST(RasterDataHeightInPixels)
  3267.         }
  3268. *IgnoreBlock
  3269. {   *% Not function; never called for now
  3270.         *Command: CmdSetDestBmpWidth
  3271.         {
  3272.             *CallbackID: =SET_DEST_BMP_WIDTH
  3273.             *Params: LIST(RasterDataWidthInBytes)
  3274.         }
  3275.         *Command: CmdSetDestBmpHeight
  3276.         {
  3277.             *CallbackID: =SET_DEST_BMP_HEIGHT
  3278.             *Params: LIST(RasterDataHeightInPixels)
  3279.         }
  3280. }
  3281.         *Command: CmdSelect
  3282.         {
  3283.             *Order: DOC_SETUP.11
  3284.             *Cmd: ""
  3285.         }
  3286.     }
  3287. }
  3288.  
  3289. *Feature: Resolution
  3290. {
  3291.     *rcNameID: =RESOLUTION_DISPLAY
  3292.     *DefaultOption: 300dpi
  3293.     *Option: 300dpi
  3294.     {
  3295.         *Name: "300 x 300 dots per inch"
  3296.         *DPI: PAIR(300, 300)
  3297.         *TextDPI: PAIR(300, 300)
  3298.         *MinStripBlankPixels: 32
  3299.         EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  3300.         EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  3301.         *SpotDiameter: 100
  3302.         *switch: ColorMode
  3303.         {
  3304.             *case: Mono
  3305.             {
  3306.                 *Command: CmdSendBlockData
  3307.                 {
  3308.                     *Cmd: "<1D>" %d{NumOfDataBytes }";" %d{(RasterDataWidthInBytes * 8) }";"
  3309. +                         %d{RasterDataHeightInPixels } ";0bi{I"
  3310.                 }
  3311.                 *Command: CmdSelect
  3312.                 {
  3313.                     *Order: DOC_SETUP.20
  3314.                     *Cmd: "<1D>0;300;300drE<1D>1;300;300drE<1D>2;300;300drE"
  3315.                 }
  3316.             }
  3317.             *case: 24bpp
  3318.             {
  3319.                 *Command: CmdSendBlockData
  3320.                 {
  3321.                     *CallbackID: =SEND_BLOCK_DATA
  3322.                     *Params: LIST(NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
  3323.                 }
  3324.                 *Command: CmdEndBlockData
  3325.                 {
  3326.                     *Cmd: "<1D>ecrI"
  3327.                 }
  3328.                 *Command: CmdSelect
  3329.                 {
  3330.                     *Order: DOC_SETUP.20
  3331.                     *Cmd: "<1D>0;300;300drE<1D>1;300;300drE<1D>2;300;300drE<1D>3;300;300drE"
  3332.                 }
  3333.                 *InsertBlock: =BM_GAMMA_ADJUSTMENT
  3334.             }
  3335.         }
  3336.     }
  3337.     *Option: 600dpi
  3338.     {
  3339.         *Name: "600 x 600 dots per inch"
  3340.         *DPI: PAIR(600, 600)
  3341.         *TextDPI: PAIR(600, 600)
  3342.         *MinStripBlankPixels: 32
  3343.         EXTERN_GLOBAL: *StripBlanks: LIST(LEADING,ENCLOSED,TRAILING)
  3344.         EXTERN_GLOBAL: *SendMultipleRows?: TRUE
  3345.         *SpotDiameter: 100
  3346.         *switch: ColorMode
  3347.         {
  3348.             *case: Mono
  3349.             {
  3350.                 *Command: CmdSendBlockData
  3351.                 {
  3352.                     *Cmd : "<1D>" %d{NumOfDataBytes}";" %d{(RasterDataWidthInBytes * 8)}";"
  3353. +                        %d{RasterDataHeightInPixels}";0bi{I" 
  3354.                 }
  3355.                 *Command: CmdSelect
  3356.                 {
  3357.                     *Order: DOC_SETUP.20
  3358.                     *Cmd: "<1D>0;600;600drE<1D>1;600;600drE<1D>2;600;600drE"
  3359.                 }
  3360.             }
  3361.             *case: 24bpp
  3362.             {
  3363.                 *Command: CmdSendBlockData
  3364.                 {
  3365.                     *CallbackID: =SEND_BLOCK_DATA
  3366.                     *Params: LIST(NumOfDataBytes,RasterDataWidthInBytes,RasterDataHeightInPixels)
  3367.                 }
  3368.                 *Command: CmdEndBlockData
  3369.                 {
  3370.                     *Cmd: "<1D>ecrI"
  3371.                 }
  3372.                 *Command: CmdSelect
  3373.                 {
  3374.                     *Order: DOC_SETUP.20
  3375.                     *Cmd: "<1D>0;600;600drE<1D>1;600;600drE<1D>2;600;600drE<1D>3;600;600drE"
  3376.                 }
  3377.                 *InsertBlock: =BM_GAMMA_ADJUSTMENT
  3378.             }
  3379.         }
  3380.     }
  3381. }
  3382.  
  3383. *Feature: PaperSize
  3384. {
  3385.     *rcNameID: =PAPER_SIZE_DISPLAY
  3386.     *DefaultOption: A4
  3387.     *Option: A3
  3388.     {
  3389.         *InsertBlock: =BM_PS_A3
  3390.     }
  3391.     *Option: A4
  3392.     {
  3393.         *InsertBlock: =BM_PS_A4
  3394.     }
  3395.     *Option: A5
  3396.     {
  3397.         *InsertBlock: =BM_PS_A5
  3398.     }
  3399.     *Option: B5
  3400.     {
  3401.         *InsertBlock: =BM_PS_B5
  3402.     }
  3403.     *Option: LETTER
  3404.     {
  3405.         *InsertBlock: =BM_PS_LT
  3406.     }
  3407.     *Option: HLT
  3408.     {
  3409.         *InsertBlock: =BM_PS_HLT
  3410.     }
  3411.     *Option: LEGAL
  3412.     {
  3413.         *InsertBlock: =BM_PS_LGL
  3414.     }
  3415.     *Option: EXECUTIVE
  3416.     {
  3417.         *InsertBlock: =BM_PS_EXE
  3418.     }
  3419.     *Option: GLG
  3420.     {
  3421.         *InsertBlock: =BM_PS_GLG
  3422.     }
  3423.     *Option: GLT
  3424.     {
  3425.         *InsertBlock: =BM_PS_GLT
  3426.     }
  3427.     *Option: F4
  3428.     {
  3429.         *InsertBlock: =BM_PS_F4
  3430.     }
  3431.     *Option: ENV_MONARCH
  3432.     {
  3433.         *InsertBlock: =BM_PS_MON
  3434.     }
  3435.     *Option: C10
  3436.     {
  3437.         *InsertBlock: =BM_PS_C10
  3438.     }
  3439.     *Option: ENV_10
  3440.     {
  3441.         *InsertBlock: =BM_PS_E10
  3442.     }
  3443.     *Option: ENV_DL
  3444.     {
  3445.         *InsertBlock: =BM_PS_DL
  3446.     }
  3447.     *Option: ENV_C5
  3448.     {
  3449.         *InsertBlock: =BM_PS_C5
  3450.     }
  3451.     *Option: ENV_C6
  3452.     {
  3453.         *InsertBlock: =BM_PS_C6
  3454.     }
  3455.     *Option: TABLOID
  3456.     {
  3457.         *InsertBlock: =BM_PS_TBLD
  3458.     }
  3459.     *Option: B4
  3460.     {
  3461.         *InsertBlock: =BM_PS_B4
  3462.     }
  3463.     *Option: CUSTOMSIZE
  3464.     {
  3465.         *rcNameID: =USER_DEFINED_SIZE_DISPLAY
  3466.         *MinSize: PAIR(4648, 6600)
  3467.         *MaxSize: PAIR(14032, 20400)
  3468.         *MaxPrintableWidth: 14032
  3469.         *InsertBlock: =BM_PSB_CTM
  3470.     }
  3471.     *Option: A3W
  3472.     {
  3473.         *InsertBlock: =BM_PS_A3W
  3474.     }
  3475.     *Option: IB5
  3476.     {
  3477.         *InsertBlock: =BM_PS_IB5
  3478.     }
  3479. }
  3480.  
  3481. *Feature: Halftone
  3482. {
  3483.     *rcNameID: =HALFTONING_DISPLAY
  3484.     *DefaultOption: HT_PATSIZE_AUTO
  3485.     *Option: HT_PATSIZE_AUTO
  3486.     {
  3487.         *rcNameID: =HT_AUTO_SELECT_DISPLAY
  3488.     }
  3489.     *Option: HT_PATSIZE_SUPERCELL_M
  3490.     {
  3491.         *rcNameID: =HT_SUPERCELL_DISPLAY
  3492.     }
  3493.     *Option: HT_PATSIZE_6x6_M
  3494.     {
  3495.         *rcNameID: =HT_DITHER6X6_DISPLAY
  3496.     }
  3497.     *Option: HT_PATSIZE_8x8_M
  3498.     {
  3499.         *rcNameID: =HT_DITHER8X8_DISPLAY
  3500.     }
  3501. }
  3502.  
  3503. *Feature: RectFill
  3504. {
  3505.     *rcNameID: =RC_STR_RECTFILL
  3506.     *FeatureType: DOC_PROPERTY
  3507.     *DefaultOption: Enabled
  3508.     *Option: Enabled
  3509.     {
  3510.         *rcNameID: =RC_STR_ENABLED
  3511.         *Command: CmdSelect
  3512.         {
  3513.             *Order: DOC_SETUP.999
  3514.             *Cmd: ""
  3515.         }
  3516.     }
  3517.     *Option: Disabled
  3518.     {
  3519.         *rcNameID: =RC_STR_DISABLED
  3520.         *Command: CmdSelect
  3521.         {
  3522.             *Order: DOC_SETUP.999
  3523.             *Cmd: ""
  3524.         }
  3525.     }
  3526. }
  3527.  
  3528. *Feature: Memory
  3529. {
  3530.     *rcNameID: =PRINTER_MEMORY_DISPLAY
  3531.     *DefaultOption: 64MB
  3532.     *Option: 64MB
  3533.     {
  3534.         *Name: "64MB"
  3535.         *MemoryConfigMB: PAIR(64, 32)
  3536.     }
  3537.     *Option: 80MB
  3538.     {
  3539.         *Name: "80MB"
  3540.         *MemoryConfigMB: PAIR(80, 40)
  3541.     }
  3542.     *Option: 96MB
  3543.     {
  3544.         *Name: "96MB"
  3545.         *MemoryConfigMB: PAIR(96, 48)
  3546.     }
  3547.     *Option: 112MB
  3548.     {
  3549.         *Name: "112MB"
  3550.         *MemoryConfigMB: PAIR(112, 56)
  3551.     }
  3552.     *Option: 128MB
  3553.     {
  3554.         *Name: "128MB"
  3555.         *MemoryConfigMB: PAIR(128, 64)
  3556.     }
  3557.     *Option: 144MB
  3558.     {
  3559.         *Name: "144MB"
  3560.         *MemoryConfigMB: PAIR(144, 72)
  3561.     }
  3562.     *Option: 160MB
  3563.     {
  3564.         *Name: "160MB"
  3565.         *MemoryConfigMB: PAIR(160, 80)
  3566.     }
  3567.     *Option: 192MB
  3568.     {
  3569.         *Name: "192MB"
  3570.         *MemoryConfigMB: PAIR(192, 96)
  3571.     }
  3572.     *Option: 208MB
  3573.     {
  3574.         *Name: "208MB"
  3575.         *MemoryConfigMB: PAIR(208, 104)
  3576.     }
  3577.     *Option: 224MB
  3578.     {
  3579.         *Name: "224MB"
  3580.         *MemoryConfigMB: PAIR(224, 112)
  3581.     }
  3582.     *Option: 256MB
  3583.     {
  3584.         *Name: "256MB"
  3585.         *MemoryConfigMB: PAIR(256, 128)
  3586.     }
  3587. }
  3588.  
  3589. *Command: CmdStartJob
  3590. {
  3591.     *Order: JOB_SETUP.1
  3592.     *CallbackID: =SET_LCID_U
  3593. }
  3594. *switch: ColorMode
  3595. {
  3596.     *case: Mono
  3597.     {
  3598.         *Command: CmdStartDoc
  3599.         {
  3600.             *Order: DOC_SETUP.1
  3601.             *Cmd: =CMD_STARTDOC_INI =CMD_EJL_SET
  3602.         }
  3603.     }
  3604.     *case: 24bpp
  3605.     {
  3606.         *Command: CmdStartDoc
  3607.         {
  3608.             *Order: DOC_SETUP.1
  3609.             *Cmd: =CMD_STARTDOC_C_INI =CMD_EJL_SET
  3610.         }
  3611.     }
  3612. }
  3613. *Command: CmdStartPage
  3614. {
  3615.     *Order: PAGE_SETUP.1
  3616.     *Cmd: "<1D>0alfP<1D>0affP<1D>0;0;0clfP<1D>0X<1D>0Y"
  3617. }
  3618. *Command: CmdEndJob
  3619. {
  3620.     *Order: JOB_FINISH.1
  3621.     *Cmd: "<1D>rhE<1B01>@EJL <0A1B01>@EJL <0A>"
  3622. }
  3623. *Command: CmdCopies
  3624. {
  3625.     *Order: PAGE_SETUP.7
  3626.     *Cmd: "<1D>"%d[1,255]{NumOfCopies}"coO"
  3627. }
  3628. *RotateCoordinate?: TRUE
  3629. *RotateRaster?: TRUE
  3630. *RotateFont?: TRUE
  3631. *TextCaps: LIST(TC_CR_90,TC_SF_X_YINDEP,TC_SA_INTEGER,TC_SA_CONTIN,TC_EA_DOUBLE,TC_IA_ABLE,TC_UA_ABLE)
  3632. *MemoryUsage: LIST(FONT,RASTER)
  3633. *CursorXAfterCR: AT_CURSOR_X_ORIGIN
  3634. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  3635. *YMoveAttributes: LIST(SEND_CR_FIRST)
  3636. *XMoveThreshold: 0
  3637. *YMoveThreshold: 0
  3638. *XMoveUnit: 600
  3639. *YMoveUnit: 600
  3640. *% #if !defined(DUMPRASTER)
  3641. *Command: CmdXMoveAbsolute { *Cmd : "<1D>" %d{(DestX / 2) }"X" }
  3642. *Command: CmdXMoveRelRight { *Cmd : "<1D>" %d{(DestXRel / 2) }"H" }
  3643. *Command: CmdXMoveRelLeft { *Cmd : "<1D>-" %d{(DestXRel / 2) }"H" }
  3644. *Command: CmdYMoveAbsolute { *Cmd : "<1D>" %d{(DestY / 2) }"Y" }
  3645. *Command: CmdYMoveRelDown { *Cmd : "<1D>" %d{(DestYRel / 2) }"V" }
  3646. *Command: CmdYMoveRelUp { *Cmd : "<1D>-" %d{(DestYRel / 2) }"V" }
  3647. *% #else    // !defined(DUMPRASTER)
  3648. *IgnoreBlock
  3649. {   *% for DEBUG
  3650. *Command: CmdXMoveAbsolute
  3651. {
  3652.     *CallbackID : =XMOVE_ABS
  3653.     *Params: LIST(DestX)
  3654. }
  3655. *Command: CmdXMoveRelRight
  3656. {
  3657.     *CallbackID : =XMOVE_REL_RT
  3658.     *Params: LIST(DestXRel)
  3659. }
  3660. *Command: CmdXMoveRelLeft
  3661. {
  3662.     *CallbackID : =XMOVE_REL_LF
  3663.     *Params: LIST(DestXRel)
  3664. }
  3665. *Command: CmdYMoveAbsolute
  3666. {
  3667.     *CallbackID : =YMOVE_ABS
  3668.     *Params: LIST(DestY)
  3669. }
  3670. *Command: CmdYMoveRelDown
  3671. {
  3672.     *CallbackID : =YMOVE_REL_DN
  3673.     *Params: LIST(DestYRel)
  3674. }
  3675. *Command: CmdYMoveRelUp
  3676. {
  3677.     *CallbackID : =YMOVE_REL_UP
  3678.     *Params: LIST(DestYRel)
  3679. }
  3680. }   *% End of *IgnoreBlock
  3681. *% #endif // !defined(DUMPRASTER)
  3682. *Command: CmdCR { *Cmd : "<0D>" }
  3683. *Command: CmdLF { *Cmd : "<0A>" }
  3684. *Command: CmdFF { *Cmd : "<0C>" }
  3685. *Command: CmdBackSpace { *Cmd : "<08>" }
  3686. *Command: CmdPushCursor { *Cmd : "<1D>1ppP" }
  3687. *Command: CmdPopCursor { *Cmd : "<1D>2ppP" }
  3688. *Command: CmdSetSimpleRotation
  3689. {
  3690.     *CallbackID: =TEXT_PRN_DIRECTION
  3691.     *Params: LIST(PrintDirInCCDegrees)
  3692. }
  3693. *EjectPageWithFF?: TRUE
  3694. *OutputDataFormat: H_BYTE
  3695. *OptimizeLeftBound?: TRUE
  3696. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  3697. *CursorYAfterSendBlockData: NO_MOVE
  3698. *DefaultFont: =RC_FONT_ROMAN
  3699. *DefaultCTT: -1
  3700. *CharPosition: BASELINE
  3701. *DeviceFonts: LIST(=RC_FONT_ROMAN,=RC_FONT_SANSRF,=RC_FONT_COURIER,=RC_FONT_COURIERI,
  3702. +                  =RC_FONT_COURIERB,=RC_FONT_COURIERZ,=RC_FONT_SYMBOL,
  3703. +                  =RC_FONT_DUTCH,=RC_FONT_DUTCHI,=RC_FONT_DUTCHB,=RC_FONT_DUTCHZ,
  3704. +                  =RC_FONT_SWISS,=RC_FONT_SWISSI,=RC_FONT_SWISSB,=RC_FONT_SWISSZ,
  3705. +                  =RC_FONT_MOREWB)
  3706.  
  3707. *TTFS: Arial
  3708. {
  3709.     *rcTTFontNameID:  =RC_TTF_ARIAL
  3710.     *rcDevFontNameID: =RC_DF_SWISS721
  3711. }
  3712. *TTFS: CourierNew
  3713. {
  3714.     *rcTTFontNameID:  =RC_TTF_COURIERNEW
  3715.     *rcDevFontNameID: =RC_DF_COURIER
  3716. }
  3717. *TTFS: Symbol
  3718. {
  3719.     *rcTTFontNameID:  =RC_TTF_SYMBOL
  3720.     *rcDevFontNameID: =RC_DF_SYMBOLIC
  3721. }
  3722. *TTFS: TimesNewRoman
  3723. {
  3724.     *rcTTFontNameID:  =RC_TTF_TIMESNR
  3725.     *rcDevFontNameID: =RC_DF_DUTCH801
  3726. }
  3727. *TTFS: Wingdings
  3728. {
  3729.     *rcTTFontNameID:  =RC_TTF_WINGDINGS
  3730.     *rcDevFontNameID: =RC_DF_MOREWINGBATS
  3731. }
  3732. *TTFSEnabled?: =TTFS_ENABLED
  3733.  
  3734. *MinFontID: =DOWNLOAD_MIN_FONT_ID
  3735. *MaxFontID: =DOWNLOAD_MAX_FONT_ID
  3736. *MaxNumDownFonts: =DOWNLOAD_MAX_FONTS
  3737. *MinGlyphID: =DOWNLOAD_MIN_GLYPH_ID
  3738. *MaxGlyphID: =DOWNLOAD_MAX_GLYPH_ID
  3739. *FontFormat: OEM_CALLBACK
  3740. *Command: CmdSelectFontID
  3741. {
  3742.     *CallbackID: =DOWNLOAD_SELECT_FONT_ID
  3743.     *Params: LIST(CurrentFontID)
  3744. }
  3745. *Command: CmdSetFontID
  3746. {
  3747.     *CallbackID: =DOWNLOAD_SET_FONT_ID
  3748.     *Params: LIST(CurrentFontID)
  3749. }
  3750. *Command: CmdSetCharCode
  3751. {
  3752.     *CallbackID: =DOWNLOAD_SET_CHAR_CODE
  3753.     *Params: LIST(NextGlyph)
  3754. }
  3755. *Command: CmdDeleteFont
  3756. {
  3757.     *CallbackID: =DOWNLOAD_DELETE_FONT
  3758.     *Params: LIST(CurrentFontID)
  3759. }
  3760. *Command: CmdBoldOn
  3761. {
  3762.     *CallbackID: =TEXT_BOLD
  3763.     *Params: LIST(FontBold)
  3764. }
  3765. *Command: CmdBoldOff
  3766. {
  3767.     *CallbackID: =TEXT_BOLD
  3768.     *Params: LIST(FontBold)
  3769. }
  3770. *Command: CmdItalicOn
  3771. {
  3772.     *CallbackID: =TEXT_ITALIC
  3773.     *Params: LIST(FontItalic)
  3774. }
  3775. *Command: CmdItalicOff
  3776. {
  3777.     *CallbackID: =TEXT_ITALIC
  3778.     *Params: LIST(FontItalic)
  3779. }
  3780.  
  3781. *switch: ColorMode
  3782. {
  3783.     *case: Mono
  3784.     {
  3785.         *Command: CmdEnableFE_RLE
  3786.         {
  3787.             *Cmd : "<1D>1bcI"
  3788.         }
  3789.         *Command: CmdDisableCompression
  3790.         {
  3791.             *Cmd : "<1D>0bcI"
  3792.         }
  3793.         *Command: CmdUnderlineOn { *Cmd : "<1D>0;2rpI<1D>1ulC" }
  3794.         *Command: CmdUnderlineOff { *Cmd : "<1D>0ulC" }
  3795.         *Command: CmdWhiteTextOn { *Cmd : "<1D>1;0;0spE<1D>1owE<1D>1tsE" }
  3796.         *Command: CmdWhiteTextOff { *Cmd : "<1D>1;0;100spE<1D>0owE<1D>0tsE" }
  3797.         *Command: CmdSelectWhiteBrush { *Cmd : "<1D>1;0;0spE<1D>1owE<1D>1tsE" }
  3798.         *Command: CmdSelectBlackBrush { *Cmd : "<1D>1;0;100spE<1D>0owE<1D>0tsE" }
  3799.         *Command: CmdVerticalPrintingOn
  3800.         {
  3801.             *CallbackID: =TEXT_VERTICAL
  3802.         }
  3803.         *Command: CmdVerticalPrintingOff
  3804.         {
  3805.             *CallbackID: =TEXT_HORIZONTAL
  3806.         }
  3807.  
  3808.         *% Vector Printing / Rectangle Fill
  3809.         *switch: RectFill
  3810.         {
  3811.             *case: Enabled
  3812.             {
  3813.                 *InsertBlock: =BM_RECTFILL
  3814.             }
  3815.             *case: Disabled
  3816.             {
  3817.                 *% Nothing
  3818.             }
  3819.         }
  3820.     }
  3821.     *case: 24bpp
  3822.     {
  3823.         *Command: CmdEnableOEMComp
  3824.         {
  3825.             *CallbackID: =COMPRESS_ON
  3826.         }
  3827.         *Command: CmdDisableCompression
  3828.         {
  3829.             *CallbackID: =COMPRESS_OFF
  3830.         }
  3831.         *Command: CmdVerticalPrintingOn
  3832.         {
  3833.             *CallbackID: =TEXT_VERTICAL
  3834.         }
  3835.         *Command: CmdVerticalPrintingOff
  3836.         {
  3837.             *CallbackID: =TEXT_HORIZONTAL
  3838.         }
  3839.  
  3840.         *% Vector Printing / Rectangle Fill
  3841.         *switch: RectFill
  3842.         {
  3843.             *case: Enabled
  3844.             {
  3845.                 *InsertBlock: =BM_RECTFILL_C
  3846.             }
  3847.             *case: Disabled
  3848.             {
  3849.                 *% Nothing
  3850.             }
  3851.         }
  3852.     }
  3853. }
  3854.